aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/session/BotPasswordSessionProviderTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/session/BotPasswordSessionProviderTest.php')
-rw-r--r--tests/phpunit/includes/session/BotPasswordSessionProviderTest.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/phpunit/includes/session/BotPasswordSessionProviderTest.php b/tests/phpunit/includes/session/BotPasswordSessionProviderTest.php
index f7f0165c1bc1..6fd99fdb104a 100644
--- a/tests/phpunit/includes/session/BotPasswordSessionProviderTest.php
+++ b/tests/phpunit/includes/session/BotPasswordSessionProviderTest.php
@@ -2,7 +2,6 @@
namespace MediaWiki\Session;
-use MediaWiki\MediaWikiServices;
use MediaWikiIntegrationTestCase;
use MultiConfig;
use Psr\Log\LogLevel;
@@ -67,7 +66,7 @@ class BotPasswordSessionProviderTest extends MediaWikiIntegrationTestCase {
}
public function addDBDataOnce() {
- $passwordFactory = MediaWikiServices::getInstance()->getPasswordFactory();
+ $passwordFactory = $this->getServiceContainer()->getPasswordFactory();
$passwordHash = $passwordFactory->newFromPlaintext( 'foobaz' );
$sysop = static::getTestSysop()->getUser();