WatchedItem::fromUserTitle( $user, $title )->getNotificationTimestamp()
);
$user->mRights = [];
- $this->assertFalse( WatchedItem::fromUserTitle( $user, $title )->isWatched() );
+ $this->assertFalse( WatchedItem::fromUserTitle( $user, $title )->getNotificationTimestamp() );
}
public function testRemoveWatch_falseOnNotAllowed() {
$this->assertTrue( WatchedItem::fromUserTitle( $user, $title )->removeWatch() );
}
+ public function testGetNotificationTimestamp_falseOnNotWatched() {
+ $user = $this->getUser();
+ $title = Title::newFromText( 'WatchedItemIntegrationTestPage' );
+
+ WatchedItem::fromUserTitle( $user, $title )->removeWatch();
+ $this->assertFalse( WatchedItem::fromUserTitle( $user, $title )->isWatched() );
+
+ $this->assertFalse( WatchedItem::fromUserTitle( $user, $title )->getNotificationTimestamp() );
+ }
+
}