2016-05-07 11:21:02 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use MediaWiki\Auth\AuthenticationRequestTestCase;
|
|
|
|
|
2018-02-16 08:01:34 +00:00
|
|
|
/**
|
|
|
|
* @covers TitleBlacklistAuthenticationRequest
|
|
|
|
*/
|
2016-05-07 11:21:02 +00:00
|
|
|
class TitleBlacklistAuthenticationRequestTest extends AuthenticationRequestTestCase {
|
2017-06-06 16:18:36 +00:00
|
|
|
protected function getInstance( array $args = [] ) {
|
2016-05-07 11:21:02 +00:00
|
|
|
return new TitleBlacklistAuthenticationRequest();
|
|
|
|
}
|
|
|
|
|
|
|
|
public function provideLoadFromSubmission() {
|
|
|
|
return [
|
|
|
|
'empty' => [ [], [], [ 'ignoreTitleBlacklist' => false ] ],
|
|
|
|
'true' => [ [], [ 'ignoreTitleBlacklist' => '1' ], [ 'ignoreTitleBlacklist' => true ] ],
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|