mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleBlacklist
synced 2024-12-18 08:31:01 +00:00
3113e6bf5f
Change-Id: I7917483168a3534d74b62dd2077026c0baa4cbe0
21 lines
644 B
PHP
21 lines
644 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 function provideLoadFromSubmission() {
|
|
return [
|
|
'empty' => [ [], [], [ 'ignoreTitleBlacklist' => false ] ],
|
|
'true' => [ [], [ 'ignoreTitleBlacklist' => '1' ], [ 'ignoreTitleBlacklist' => true ] ],
|
|
];
|
|
}
|
|
}
|