aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/auth/AbstractAuthenticationProviderTest.php
diff options
context:
space:
mode:
authorGergő Tisza <gtisza@wikimedia.org>2017-04-19 19:37:35 +0000
committerGergő Tisza <gtisza@wikimedia.org>2017-04-20 14:15:57 +0000
commit525bfbc8df855aa12e01868d92532cd64482dc7d (patch)
treed21f1ef446c1057ddb7979a81f41709e164a33db /tests/phpunit/includes/auth/AbstractAuthenticationProviderTest.php
parent8d4cda3ce5cf4b287877ea6f847a31c8ed7d83d8 (diff)
downloadmediawikicore-525bfbc8df855aa12e01868d92532cd64482dc7d.tar.gz
mediawikicore-525bfbc8df855aa12e01868d92532cd64482dc7d.zip
Switch to librarized version of TestingAccessWrapper
Replaces \TestingAccessWrapper (defined in core) with \Wikimedia\TestingAccessWrapper (defined in the composer package wikimedia/testing-access-wrapper). See https://gerrit.wikimedia.org/r/#/q/topic:librarize-testing-access-wrapper for downstream patches. The core version of the class is kept around for a while to avoid circular dependency problems. Bug: T163434 Change-Id: I52cc257e593da3d6c3b01a909e554a950225aec8
Diffstat (limited to 'tests/phpunit/includes/auth/AbstractAuthenticationProviderTest.php')
-rw-r--r--tests/phpunit/includes/auth/AbstractAuthenticationProviderTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/phpunit/includes/auth/AbstractAuthenticationProviderTest.php b/tests/phpunit/includes/auth/AbstractAuthenticationProviderTest.php
index 89e48f723534..a3b0df529de2 100644
--- a/tests/phpunit/includes/auth/AbstractAuthenticationProviderTest.php
+++ b/tests/phpunit/includes/auth/AbstractAuthenticationProviderTest.php
@@ -2,6 +2,8 @@
namespace MediaWiki\Auth;
+use Wikimedia\TestingAccessWrapper;
+
/**
* @group AuthManager
* @covers MediaWiki\Auth\AbstractAuthenticationProvider
@@ -9,7 +11,7 @@ namespace MediaWiki\Auth;
class AbstractAuthenticationProviderTest extends \MediaWikiTestCase {
public function testAbstractAuthenticationProvider() {
$provider = $this->getMockForAbstractClass( AbstractAuthenticationProvider::class );
- $providerPriv = \TestingAccessWrapper::newFromObject( $provider );
+ $providerPriv = TestingAccessWrapper::newFromObject( $provider );
$obj = $this->getMockForAbstractClass( 'Psr\Log\LoggerInterface' );
$provider->setLogger( $obj );