mediawiki-extensions-OATHAuth/tests/phpunit/Auth/TOTPAuthenticationRequestTest.php
Umherirrender 6089abf1cb tests: Use static provider in TOTPAuthenticationRequestTest
Shows up a deprecation message

Follow-Up: I5ff35ad0e894f0a27beae00257dc1fc599ad518d
Change-Id: Ibd0184ab7f30898e9415400051413b3b7f9dde53
2023-05-19 22:27:12 +02:00

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