mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleBlacklist
synced 2024-11-24 06:04:05 +00:00
277c88d44d
This global from MediaWiki was removed in 854a462 in 2016 but we didn't clean up after it at the time. Change-Id: I48f5d104e5350bd2ac170afc155015b8060e2ed5
20 lines
532 B
PHP
20 lines
532 B
PHP
<?php
|
|
|
|
use MediaWiki\Auth\AuthenticationRequestTestCase;
|
|
|
|
/**
|
|
* @covers TitleBlacklistAuthenticationRequest
|
|
*/
|
|
class TitleBlacklistAuthenticationRequestTest extends AuthenticationRequestTestCase {
|
|
protected function getInstance( array $args = [] ) {
|
|
return new TitleBlacklistAuthenticationRequest();
|
|
}
|
|
|
|
public function provideLoadFromSubmission() {
|
|
return [
|
|
'empty' => [ [], [], [ 'ignoreTitleBlacklist' => false ] ],
|
|
'true' => [ [], [ 'ignoreTitleBlacklist' => '1' ], [ 'ignoreTitleBlacklist' => true ] ],
|
|
];
|
|
}
|
|
}
|