aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/auth/LocalPasswordPrimaryAuthenticationProviderTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/auth/LocalPasswordPrimaryAuthenticationProviderTest.php')
-rw-r--r--tests/phpunit/includes/auth/LocalPasswordPrimaryAuthenticationProviderTest.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/phpunit/includes/auth/LocalPasswordPrimaryAuthenticationProviderTest.php b/tests/phpunit/includes/auth/LocalPasswordPrimaryAuthenticationProviderTest.php
index 7044f26a214d..c110ab7b6eea 100644
--- a/tests/phpunit/includes/auth/LocalPasswordPrimaryAuthenticationProviderTest.php
+++ b/tests/phpunit/includes/auth/LocalPasswordPrimaryAuthenticationProviderTest.php
@@ -2,7 +2,6 @@
namespace MediaWiki\Auth;
-use MediaWiki\MediaWikiServices;
use MediaWiki\Tests\Unit\Auth\AuthenticationProviderTestTrait;
use MediaWiki\User\UserNameUtils;
use Psr\Container\ContainerInterface;
@@ -30,7 +29,7 @@ class LocalPasswordPrimaryAuthenticationProviderTest extends \MediaWikiIntegrati
* @return LocalPasswordPrimaryAuthenticationProvider
*/
protected function getProvider( $loginOnly = false ) {
- $mwServices = MediaWikiServices::getInstance();
+ $mwServices = $this->getServiceContainer();
if ( !$this->config ) {
$this->config = new \HashConfig();
}