mediawiki-extensions-TitleB.../tests/phpunit/TitleBlacklistAuthenticationRequestTest.php
Reedy 3113e6bf5f Namespace extension
Change-Id: I7917483168a3534d74b62dd2077026c0baa4cbe0
2022-04-08 14:24:11 +01:00

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 ] ],
];
}
}