2015-11-16 02:52:23 +00:00
|
|
|
<?php
|
|
|
|
|
2019-05-14 12:22:36 +00:00
|
|
|
namespace MediaWiki\Extension\OATHAuth\Tests\Auth;
|
|
|
|
|
|
|
|
use MediaWiki\Extension\OATHAuth\Auth\TOTPAuthenticationRequest;
|
2024-06-09 16:58:24 +00:00
|
|
|
use MediaWiki\Tests\Auth\AuthenticationRequestTestCase;
|
2015-11-16 02:52:23 +00:00
|
|
|
|
2022-11-11 02:45:11 +00:00
|
|
|
/**
|
|
|
|
* @covers \MediaWiki\Extension\OATHAuth\Auth\TOTPAuthenticationRequest
|
|
|
|
*/
|
2015-11-16 02:52:23 +00:00
|
|
|
class TOTPAuthenticationRequestTest extends AuthenticationRequestTestCase {
|
|
|
|
|
|
|
|
protected function getInstance( array $args = [] ) {
|
|
|
|
return new TOTPAuthenticationRequest();
|
|
|
|
}
|
|
|
|
|
2023-05-19 20:27:12 +00:00
|
|
|
public static function provideLoadFromSubmission() {
|
2015-11-16 02:52:23 +00:00
|
|
|
return [
|
|
|
|
[ [], [], false ],
|
|
|
|
[ [], [ 'OATHToken' => '123456' ], [ 'OATHToken' => '123456' ] ],
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|