X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fauth%2FCheckBlocksSecondaryAuthenticationProviderTest.php;h=68f574b6b40331dc198f27fab396b629911ed059;hb=61adc1e146dbfc782af0a3fcc9ead094d1513706;hp=f2341bcd3f8292b86c62e4c53ca33e53bf793cae;hpb=c9bef3d160724e84b9c876615cceddffadef73bc;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/auth/CheckBlocksSecondaryAuthenticationProviderTest.php b/tests/phpunit/includes/auth/CheckBlocksSecondaryAuthenticationProviderTest.php index f2341bcd3f..68f574b6b4 100644 --- a/tests/phpunit/includes/auth/CheckBlocksSecondaryAuthenticationProviderTest.php +++ b/tests/phpunit/includes/auth/CheckBlocksSecondaryAuthenticationProviderTest.php @@ -8,15 +8,6 @@ namespace MediaWiki\Auth; * @covers MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProvider */ class CheckBlocksSecondaryAuthenticationProviderTest extends \MediaWikiTestCase { - protected function setUp() { - global $wgDisableAuthManager; - - parent::setUp(); - if ( $wgDisableAuthManager ) { - $this->markTestSkipped( '$wgDisableAuthManager is set' ); - } - } - public function testConstructor() { $provider = new CheckBlocksSecondaryAuthenticationProvider(); $providerPriv = \TestingAccessWrapper::newFromObject( $provider ); @@ -161,7 +152,7 @@ class CheckBlocksSecondaryAuthenticationProviderTest extends \MediaWikiTestCase ]; $block = new \Block( $blockOptions ); $block->insert(); - $scopeVariable = new \ScopedCallback( [ $block, 'delete' ] ); + $scopeVariable = new \Wikimedia\ScopedCallback( [ $block, 'delete' ] ); $user = \User::newFromName( 'UTNormalUser' ); if ( $user->getID() == 0 ) {