X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FWatchedItemIntegrationTest.php;h=65a8c86bb732bd76d4d98be51abdfbbc3fd96af3;hb=4d94cc1432759b89b1e90b982c4e27a5157ebca3;hp=be22260d76be6b6a8fc4d1ccbf86bb3f7417638e;hpb=ff244610658099d90283a819b167baa824d90e93;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/WatchedItemIntegrationTest.php b/tests/phpunit/includes/WatchedItemIntegrationTest.php index be22260d76..65a8c86bb7 100644 --- a/tests/phpunit/includes/WatchedItemIntegrationTest.php +++ b/tests/phpunit/includes/WatchedItemIntegrationTest.php @@ -1,4 +1,5 @@ hideDeprecated( 'WatchedItem::addWatch' ); $this->hideDeprecated( 'WatchedItem::removeWatch' ); $this->hideDeprecated( 'WatchedItem::isWatched' ); - $this->hideDeprecated( 'WatchedItem::resetNotificationTimestamp' ); $this->hideDeprecated( 'WatchedItem::duplicateEntries' ); $this->hideDeprecated( 'WatchedItem::batchAddWatch' ); } @@ -63,7 +63,9 @@ class WatchedItemIntegrationTest extends MediaWikiTestCase { WatchedItem::fromUserTitle( $user, $title )->getNotificationTimestamp() ); - WatchedItem::fromUserTitle( $user, $title )->resetNotificationTimestamp(); + MediaWikiServices::getInstance()->getWatchedItemStore()->resetNotificationTimestamp( + $user, $title + ); $this->assertNull( WatchedItem::fromUserTitle( $user, $title )->getNotificationTimestamp() ); } @@ -107,7 +109,9 @@ class WatchedItemIntegrationTest extends MediaWikiTestCase { $user = $this->getUser(); $title = Title::newFromText( 'WatchedItemIntegrationTestPage' ); WatchedItem::fromUserTitle( $user, $title )->addWatch(); - WatchedItem::fromUserTitle( $user, $title )->resetNotificationTimestamp(); + MediaWikiServices::getInstance()->getWatchedItemStore()->resetNotificationTimestamp( + $user, $title + ); $this->assertEquals( null,