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:
James D. Forrester 2019-02-09 12:31:56 -08:00
parent 269187744f
commit 277c88d44d
2 changed files with 0 additions and 18 deletions

View file

@ -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();
}

View file

@ -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
*/