X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fauth%2FCheckBlocksSecondaryAuthenticationProviderTest.php;h=111c855445700ce35eeabd2a28152151a8a9ceb4;hb=3cb14f56bdf3271769a5866f9dcaad56bf873aea;hp=e6d3ecfa1242b068e416f25300c25a1eabdf7a59;hpb=b9f443d6174d6ff8a9f1bdf93b4c9b886ef2b91c;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/auth/CheckBlocksSecondaryAuthenticationProviderTest.php b/tests/phpunit/includes/auth/CheckBlocksSecondaryAuthenticationProviderTest.php index e6d3ecfa12..111c855445 100644 --- a/tests/phpunit/includes/auth/CheckBlocksSecondaryAuthenticationProviderTest.php +++ b/tests/phpunit/includes/auth/CheckBlocksSecondaryAuthenticationProviderTest.php @@ -2,6 +2,8 @@ namespace MediaWiki\Auth; +use Wikimedia\TestingAccessWrapper; + /** * @group AuthManager * @group Database @@ -10,7 +12,7 @@ namespace MediaWiki\Auth; class CheckBlocksSecondaryAuthenticationProviderTest extends \MediaWikiTestCase { public function testConstructor() { $provider = new CheckBlocksSecondaryAuthenticationProvider(); - $providerPriv = \TestingAccessWrapper::newFromObject( $provider ); + $providerPriv = TestingAccessWrapper::newFromObject( $provider ); $config = new \HashConfig( [ 'BlockDisablesLogin' => false ] ); @@ -20,7 +22,7 @@ class CheckBlocksSecondaryAuthenticationProviderTest extends \MediaWikiTestCase $provider = new CheckBlocksSecondaryAuthenticationProvider( [ 'blockDisablesLogin' => true ] ); - $providerPriv = \TestingAccessWrapper::newFromObject( $provider ); + $providerPriv = TestingAccessWrapper::newFromObject( $provider ); $config = new \HashConfig( [ 'BlockDisablesLogin' => false ] ); @@ -152,7 +154,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 ) {