mediawiki-extensions-OATHAuth/tests/phpunit/Auth/TOTPAuthenticationRequestTest.php
rvogel b9f768e20a Refactor includes to src #2
Bug: T218210

Change-Id: I079e6e819c079b68bbfecdac0d873b26d4e16e86
2019-07-04 13:36:13 +00:00

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' ] ],
];
}
}