mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-12-01 03:16:24 +00:00
b9f768e20a
Bug: T218210 Change-Id: I079e6e819c079b68bbfecdac0d873b26d4e16e86
21 lines
511 B
PHP
21 lines
511 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Extension\OATHAuth\Tests\Auth;
|
|
|
|
use MediaWiki\Auth\AuthenticationRequestTestCase;
|
|
use MediaWiki\Extension\OATHAuth\Auth\TOTPAuthenticationRequest;
|
|
|
|
class TOTPAuthenticationRequestTest extends AuthenticationRequestTestCase {
|
|
|
|
protected function getInstance( array $args = [] ) {
|
|
return new TOTPAuthenticationRequest();
|
|
}
|
|
|
|
public function provideLoadFromSubmission() {
|
|
return [
|
|
[ [], [], false ],
|
|
[ [], [ 'OATHToken' => '123456' ], [ 'OATHToken' => '123456' ] ],
|
|
];
|
|
}
|
|
}
|