diff options
Diffstat (limited to 'www/wiki/extensions/OATHAuth/tests/phpunit/TOTPAuthenticationRequestTest.php')
-rw-r--r-- | www/wiki/extensions/OATHAuth/tests/phpunit/TOTPAuthenticationRequestTest.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/www/wiki/extensions/OATHAuth/tests/phpunit/TOTPAuthenticationRequestTest.php b/www/wiki/extensions/OATHAuth/tests/phpunit/TOTPAuthenticationRequestTest.php new file mode 100644 index 00000000..56403848 --- /dev/null +++ b/www/wiki/extensions/OATHAuth/tests/phpunit/TOTPAuthenticationRequestTest.php @@ -0,0 +1,17 @@ +<?php + +use MediaWiki\Auth\AuthenticationRequestTestCase; + +class TOTPAuthenticationRequestTest extends AuthenticationRequestTestCase { + + protected function getInstance( array $args = [] ) { + return new TOTPAuthenticationRequest(); + } + + public function provideLoadFromSubmission() { + return [ + [ [], [], false ], + [ [], [ 'OATHToken' => '123456' ], [ 'OATHToken' => '123456' ] ], + ]; + } +} |