mediawiki-extensions-TitleB.../tests/phpunit/TitleBlacklistAuthenticationRequestTest.php
Umherirrender 7ece0eddd0 tests: Use static provider in TitleBlacklistAuthenticationRequestTest
Shows up a deprecation message

Follow-Up: I5ff35ad0e894f0a27beae00257dc1fc599ad518d
Change-Id: I159d727d92ed1d5ca5721d9a290bff89c5922c8d
2023-05-19 22:27:21 +02:00

21 lines
651 B
PHP

<?php
use MediaWiki\Auth\AuthenticationRequestTestCase;
use MediaWiki\Extension\TitleBlacklist\TitleBlacklistAuthenticationRequest;
/**
* @covers \MediaWiki\Extension\TitleBlacklist\TitleBlacklistAuthenticationRequest
*/
class TitleBlacklistAuthenticationRequestTest extends AuthenticationRequestTestCase {
protected function getInstance( array $args = [] ) {
return new TitleBlacklistAuthenticationRequest();
}
public static function provideLoadFromSubmission() {
return [
'empty' => [ [], [], [ 'ignoreTitleBlacklist' => false ] ],
'true' => [ [], [ 'ignoreTitleBlacklist' => '1' ], [ 'ignoreTitleBlacklist' => true ] ],
];
}
}