mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleBlacklist
synced 2024-12-04 02:18:42 +00:00
7ece0eddd0
Shows up a deprecation message Follow-Up: I5ff35ad0e894f0a27beae00257dc1fc599ad518d Change-Id: I159d727d92ed1d5ca5721d9a290bff89c5922c8d
21 lines
651 B
PHP
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 ] ],
|
|
];
|
|
}
|
|
}
|