mediawiki-extensions-OATHAuth/tests/phpunit/Auth/TOTPAuthenticationRequestTest.php

24 lines
604 B
PHP
Raw Normal View History

<?php
namespace MediaWiki\Extension\OATHAuth\Tests\Auth;
use MediaWiki\Extension\OATHAuth\Auth\TOTPAuthenticationRequest;
use MediaWiki\Tests\Auth\AuthenticationRequestTestCase;
/**
* @covers \MediaWiki\Extension\OATHAuth\Auth\TOTPAuthenticationRequest
*/
class TOTPAuthenticationRequestTest extends AuthenticationRequestTestCase {
protected function getInstance( array $args = [] ) {
return new TOTPAuthenticationRequest();
}
public static function provideLoadFromSubmission() {
return [
[ [], [], false ],
[ [], [ 'OATHToken' => '123456' ], [ 'OATHToken' => '123456' ] ],
];
}
}