aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/api/ApiSetNotificationTimestampIntegrationTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/api/ApiSetNotificationTimestampIntegrationTest.php')
-rw-r--r--tests/phpunit/includes/api/ApiSetNotificationTimestampIntegrationTest.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/phpunit/includes/api/ApiSetNotificationTimestampIntegrationTest.php b/tests/phpunit/includes/api/ApiSetNotificationTimestampIntegrationTest.php
index 867d178a5476..2b3c8f9f9829 100644
--- a/tests/phpunit/includes/api/ApiSetNotificationTimestampIntegrationTest.php
+++ b/tests/phpunit/includes/api/ApiSetNotificationTimestampIntegrationTest.php
@@ -1,7 +1,5 @@
<?php
-use MediaWiki\MediaWikiServices;
-
/**
* @author Addshore
* @covers ApiSetNotificationTimestamp
@@ -47,7 +45,7 @@ class ApiSetNotificationTimestampIntegrationTest extends ApiTestCase {
$result[0]
);
- $watchedItemStore = MediaWikiServices::getInstance()->getWatchedItemStore();
+ $watchedItemStore = $this->getServiceContainer()->getWatchedItemStore();
$this->assertEquals(
$watchedItemStore->getNotificationTimestampsBatch( $user, [ $page->getTitle() ] ),
[ [ 'UTPage' => '20160101020202' ] ]