diff options
author | Alexander Vorwerk <alexander.vorwerk@stud.uni-goettingen.de> | 2022-01-12 21:13:39 +0100 |
---|---|---|
committer | Alexander Vorwerk <alexander.vorwerk@stud.uni-goettingen.de> | 2022-01-27 22:04:16 +0100 |
commit | decbaf4f384cd53912c0d21762b2b64309cb30f0 (patch) | |
tree | d9716312fc58ed176ad02c2860005e523c275d75 /tests/phpunit/includes/api/ApiSetNotificationTimestampIntegrationTest.php | |
parent | e05dde5bc4bcfa5b636272978ff9be5100aebe94 (diff) | |
download | mediawikicore-decbaf4f384cd53912c0d21762b2b64309cb30f0.tar.gz mediawikicore-decbaf4f384cd53912c0d21762b2b64309cb30f0.zip |
phpunit: use ->getServiceContainer() in integration tests
Change-Id: I38299cb65eeaadfdc0eb05db4e8c0b0119cfb37d
Diffstat (limited to 'tests/phpunit/includes/api/ApiSetNotificationTimestampIntegrationTest.php')
-rw-r--r-- | tests/phpunit/includes/api/ApiSetNotificationTimestampIntegrationTest.php | 4 |
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' ] ] |