15 self::$users[
'WatchedItemIntegrationTestUser']
16 =
new TestUser(
'WatchedItemIntegrationTestUser' );
27 return self::$users[
'WatchedItemIntegrationTestUser']->getUser();
32 $title = Title::newFromText(
'WatchedItemIntegrationTestPage' );
38 'Page should not initially be watched'
43 'Page should be watched'
48 'Page should be unwatched'
54 $otherUser = (
new TestUser(
'WatchedItemIntegrationTestUser_otherUser' ) )->
getUser();
55 $title = Title::newFromText(
'WatchedItemIntegrationTestPage' );
65 MediaWikiServices::getInstance()->getWatchedItemStore()->resetNotificationTimestamp(
73 $titleOld = Title::newFromText(
'WatchedItemIntegrationTestPageOld' );
74 $titleNew = Title::newFromText(
'WatchedItemIntegrationTestPageNew' );
99 $title = Title::newFromText(
'WatchedItemIntegrationTestPage' );
109 $title = Title::newFromText(
'WatchedItemIntegrationTestPage' );
111 MediaWikiServices::getInstance()->getWatchedItemStore()->resetNotificationTimestamp(
125 $title = Title::newFromText(
'WatchedItemIntegrationTestPage' );
128 $previousRights = $user->mRights;
131 $user->mRights = $previousRights;
137 $title = Title::newFromText(
'WatchedItemIntegrationTestPage' );
static updateWatchlistTimestamp(User $editor, LinkTarget $linkTarget, $timestamp)
Wraps the user object, so we can also retain full access to properties like password if we log in via...
testGetNotificationTimestamp_falseOnNotAllowed()
testIsWatched_falseOnNotAllowed()
testGetNotificationTimestamp_falseOnNotWatched()
testWatchAndUnWatchItem()
testRemoveWatch_falseOnNotAllowed()
testUpdateAndResetNotificationTimestamp()
testDuplicateAllAssociatedEntries()
static duplicateEntries(Title $oldTitle, Title $newTitle)
static fromUserTitle( $user, $title, $checkRights=User::CHECK_USER_RIGHTS)