2016-05-07 11:21:02 +00:00
|
|
|
<?php
|
|
|
|
|
2022-04-08 13:20:08 +00:00
|
|
|
use MediaWiki\Extension\TitleBlacklist\TitleBlacklistAuthenticationRequest;
|
2024-06-10 20:05:31 +00:00
|
|
|
use MediaWiki\Tests\Auth\AuthenticationRequestTestCase;
|
2016-05-07 11:21:02 +00:00
|
|
|
|
2018-02-16 08:01:34 +00:00
|
|
|
/**
|
2022-04-08 13:20:08 +00:00
|
|
|
* @covers \MediaWiki\Extension\TitleBlacklist\TitleBlacklistAuthenticationRequest
|
2018-02-16 08:01:34 +00:00
|
|
|
*/
|
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();
|
|
|
|
}
|
|
|
|
|
2023-05-19 20:27:21 +00:00
|
|
|
public static function provideLoadFromSubmission() {
|
2016-05-07 11:21:02 +00:00
|
|
|
return [
|
|
|
|
'empty' => [ [], [], [ 'ignoreTitleBlacklist' => false ] ],
|
|
|
|
'true' => [ [], [ 'ignoreTitleBlacklist' => '1' ], [ 'ignoreTitleBlacklist' => true ] ],
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|