2015-11-16 02:52:23 +00:00
|
|
|
<?php
|
|
|
|
|
2019-05-14 12:22:36 +00:00
|
|
|
namespace MediaWiki\Extension\OATHAuth\Tests\Auth;
|
|
|
|
|
2015-11-16 02:52:23 +00:00
|
|
|
use MediaWiki\Auth\AuthenticationRequestTestCase;
|
2019-05-14 12:22:36 +00:00
|
|
|
use 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();
|
|
|
|
}
|
|
|
|
|
|
|
|
public function provideLoadFromSubmission() {
|
|
|
|
return [
|
|
|
|
[ [], [], false ],
|
|
|
|
[ [], [ 'OATHToken' => '123456' ], [ 'OATHToken' => '123456' ] ],
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|