mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleBlacklist
synced 2024-11-30 16:54:21 +00:00
1ebec92f0a
No longer needed now that extension unittests are autodiscovered. Bug: T142120 Bug: T142121 Change-Id: Id86f4909e9c74c884ce33434717ad6993cbcc2bd
26 lines
724 B
PHP
26 lines
724 B
PHP
<?php
|
|
|
|
use MediaWiki\Auth\AuthenticationRequestTestCase;
|
|
use MediaWiki\Auth\AuthManager;
|
|
|
|
class TitleBlacklistAuthenticationRequestTest extends AuthenticationRequestTestCase {
|
|
public function setUp() {
|
|
global $wgDisableAuthManager;
|
|
if ( !class_exists( AuthManager::class ) || $wgDisableAuthManager ) {
|
|
$this->markTestSkipped( 'AuthManager is disabled' );
|
|
}
|
|
parent::setUp();
|
|
}
|
|
|
|
protected function getInstance( array $args = [ ] ) {
|
|
return new TitleBlacklistAuthenticationRequest();
|
|
}
|
|
|
|
public function provideLoadFromSubmission() {
|
|
return [
|
|
'empty' => [ [], [], [ 'ignoreTitleBlacklist' => false ] ],
|
|
'true' => [ [], [ 'ignoreTitleBlacklist' => '1' ], [ 'ignoreTitleBlacklist' => true ] ],
|
|
];
|
|
}
|
|
}
|