aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/api/query/ApiQueryRecentChangesIntegrationTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/api/query/ApiQueryRecentChangesIntegrationTest.php')
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryRecentChangesIntegrationTest.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/phpunit/includes/api/query/ApiQueryRecentChangesIntegrationTest.php b/tests/phpunit/includes/api/query/ApiQueryRecentChangesIntegrationTest.php
index cedd58904122..4264ab612617 100644
--- a/tests/phpunit/includes/api/query/ApiQueryRecentChangesIntegrationTest.php
+++ b/tests/phpunit/includes/api/query/ApiQueryRecentChangesIntegrationTest.php
@@ -1,7 +1,6 @@
<?php
use MediaWiki\Linker\LinkTarget;
-use MediaWiki\MediaWikiServices;
/**
* @group API
@@ -397,7 +396,7 @@ class ApiQueryRecentChangesIntegrationTest extends ApiTestCase {
$target,
'Create the page that will be deleted'
);
- $wikiPage = MediaWikiServices::getInstance()->getWikiPageFactory()->newFromLinkTarget( $target );
+ $wikiPage = $this->getServiceContainer()->getWikiPageFactory()->newFromLinkTarget( $target );
$this->deletePage( $wikiPage, 'Important Reason' );
}
@@ -648,7 +647,7 @@ class ApiQueryRecentChangesIntegrationTest extends ApiTestCase {
]
);
$title = Title::newFromLinkTarget( $subjectTarget );
- $revision = MediaWikiServices::getInstance()
+ $revision = $this->getServiceContainer()
->getRevisionLookup()
->getRevisionByTitle( $title );