X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fauth%2FEmailNotificationSecondaryAuthenticationProviderTest.php;h=3757069e344dd87571793920c4e9bcf74c8b1c92;hb=cf3bdd40a3fd22045703c1e188115fc87386fa65;hp=ca6689a9ca9b8e3657af6f453aad27f122069590;hpb=3b24efab270e0f8d768ee3d390e25ae5259da431;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/auth/EmailNotificationSecondaryAuthenticationProviderTest.php b/tests/phpunit/includes/auth/EmailNotificationSecondaryAuthenticationProviderTest.php index ca6689a9ca..3757069e34 100644 --- a/tests/phpunit/includes/auth/EmailNotificationSecondaryAuthenticationProviderTest.php +++ b/tests/phpunit/includes/auth/EmailNotificationSecondaryAuthenticationProviderTest.php @@ -3,6 +3,7 @@ namespace MediaWiki\Auth; use Psr\Log\LoggerInterface; +use Wikimedia\TestingAccessWrapper; class EmailNotificationSecondaryAuthenticationProviderTest extends \PHPUnit_Framework_TestCase { public function testConstructor() { @@ -13,14 +14,14 @@ class EmailNotificationSecondaryAuthenticationProviderTest extends \PHPUnit_Fram $provider = new EmailNotificationSecondaryAuthenticationProvider(); $provider->setConfig( $config ); - $providerPriv = \TestingAccessWrapper::newFromObject( $provider ); + $providerPriv = TestingAccessWrapper::newFromObject( $provider ); $this->assertTrue( $providerPriv->sendConfirmationEmail ); $provider = new EmailNotificationSecondaryAuthenticationProvider( [ 'sendConfirmationEmail' => false, ] ); $provider->setConfig( $config ); - $providerPriv = \TestingAccessWrapper::newFromObject( $provider ); + $providerPriv = TestingAccessWrapper::newFromObject( $provider ); $this->assertFalse( $providerPriv->sendConfirmationEmail ); }