mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-12-03 20:36:29 +00:00
6089abf1cb
Shows up a deprecation message Follow-Up: I5ff35ad0e894f0a27beae00257dc1fc599ad518d Change-Id: Ibd0184ab7f30898e9415400051413b3b7f9dde53
24 lines
598 B
PHP
24 lines
598 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Extension\OATHAuth\Tests\Auth;
|
|
|
|
use MediaWiki\Auth\AuthenticationRequestTestCase;
|
|
use MediaWiki\Extension\OATHAuth\Auth\TOTPAuthenticationRequest;
|
|
|
|
/**
|
|
* @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' ] ],
|
|
];
|
|
}
|
|
}
|