diff options
Diffstat (limited to 'tests/phpunit/includes/session/SessionBackendTest.php')
-rw-r--r-- | tests/phpunit/includes/session/SessionBackendTest.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/phpunit/includes/session/SessionBackendTest.php b/tests/phpunit/includes/session/SessionBackendTest.php index e1a17cedae9e..51deab717e9a 100644 --- a/tests/phpunit/includes/session/SessionBackendTest.php +++ b/tests/phpunit/includes/session/SessionBackendTest.php @@ -4,7 +4,6 @@ namespace MediaWiki\Session; use Config; use MediaWiki\HookContainer\HookContainer; -use MediaWiki\MediaWikiServices; use MediaWikiIntegrationTestCase; use User; use Wikimedia\AtEase\AtEase; @@ -39,7 +38,7 @@ class SessionBackendTest extends MediaWikiIntegrationTestCase { */ private function getHookContainer() { // Need a real HookContainer to support modification of $wgHooks in the test - return MediaWikiServices::getInstance()->getHookContainer(); + return $this->getServiceContainer()->getHookContainer(); } /** |