mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-11-24 00:05:24 +00:00
56e062512d
Changes to the use statements done automatically via script Change-Id: Ib56dd5248012dfdc3490aa82bb00f66f20ae1c84
24 lines
604 B
PHP
24 lines
604 B
PHP
<?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' ] ],
|
|
];
|
|
}
|
|
}
|