mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleBlacklist
synced 2024-11-27 15:30:48 +00:00
Drop support for operation when wgDisableAuthManager is true
This global from MediaWiki was removed in 854a462 in 2016 but we didn't clean up after it at the time. Change-Id: I48f5d104e5350bd2ac170afc155015b8060e2ed5
This commit is contained in:
parent
269187744f
commit
277c88d44d
|
@ -1,20 +1,11 @@
|
|||
<?php
|
||||
|
||||
use MediaWiki\Auth\AuthenticationRequestTestCase;
|
||||
use MediaWiki\Auth\AuthManager;
|
||||
|
||||
/**
|
||||
* @covers TitleBlacklistAuthenticationRequest
|
||||
*/
|
||||
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();
|
||||
}
|
||||
|
|
|
@ -6,15 +6,6 @@ use MediaWiki\Auth\AuthManager;
|
|||
* @covers TitleBlacklistPreAuthenticationProvider
|
||||
*/
|
||||
class TitleBlacklistPreAuthenticationProviderTest extends MediaWikiTestCase {
|
||||
public function setUp() {
|
||||
global $wgDisableAuthManager;
|
||||
if ( !class_exists( AuthManager::class ) || $wgDisableAuthManager ) {
|
||||
$this->markTestSkipped( 'AuthManager is disabled' );
|
||||
}
|
||||
|
||||
parent::setUp();
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider provideGetAuthenticationRequests
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue