X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fauth%2FEmailNotificationSecondaryAuthenticationProviderTest.php;h=3757069e344dd87571793920c4e9bcf74c8b1c92;hb=f7e1770fb832aa77bf4e16ce8cc815f2b24dd10d;hp=ca6689a9ca9b8e3657af6f453aad27f122069590;hpb=ecba64eee06463a6aa7dc22de8c0be5784531514;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 ); }