mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-12-19 03:20:34 +00:00
18 lines
394 B
PHP
18 lines
394 B
PHP
|
<?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' ] ],
|
||
|
];
|
||
|
}
|
||
|
}
|