| 1 |
<?php |
| 2 |
|
| 3 |
use MediaWiki\Extension\TitleBlacklist\TitleBlacklistAuthenticationRequest; |
| 4 |
use MediaWiki\Tests\Auth\AuthenticationRequestTestCase; |
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
class TitleBlacklistAuthenticationRequestTest extends AuthenticationRequestTestCase { |
| 10 |
protected function getInstance( array $args = [] ) { |
| 11 |
return new TitleBlacklistAuthenticationRequest(); |
| 12 |
} |
| 13 |
|
| 14 |
public static function provideLoadFromSubmission() { |
| 15 |
return [ |
| 16 |
'empty' => [ [], [], [ 'ignoreTitleBlacklist' => false ] ], |
| 17 |
'true' => [ [], [ 'ignoreTitleBlacklist' => '1' ], [ 'ignoreTitleBlacklist' => true ] ], |
| 18 |
]; |
| 19 |
} |
| 20 |
} |