aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/specials/SpecialShortPagesTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/specials/SpecialShortPagesTest.php')
-rw-r--r--tests/phpunit/includes/specials/SpecialShortPagesTest.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/phpunit/includes/specials/SpecialShortPagesTest.php b/tests/phpunit/includes/specials/SpecialShortPagesTest.php
index 1fe05ad0d1f6..d295faa52588 100644
--- a/tests/phpunit/includes/specials/SpecialShortPagesTest.php
+++ b/tests/phpunit/includes/specials/SpecialShortPagesTest.php
@@ -1,7 +1,5 @@
<?php
-use MediaWiki\MediaWikiServices;
-
/**
* Test class for SpecialShortPages class
*
@@ -24,7 +22,7 @@ class SpecialShortPagesTest extends MediaWikiIntegrationTestCase {
// empty hook handler
} );
- $services = MediaWikiServices::getInstance();
+ $services = $this->getServiceContainer();
$page = new SpecialShortPages(
$services->getNamespaceInfo(),
$services->getDBLoadBalancer(),