13 $innerService->expects( $this->never() )->method(
'addWatch' );
23 $innerService->expects( $this->never() )->method(
'addWatchBatchForUser' );
27 $noWriteService->addWatchBatchForUser( $this->
getTestSysop()->getUser(), [] );
33 $innerService->expects( $this->never() )->method(
'removeWatch' );
43 $innerService->expects( $this->never() )->method(
'setNotificationTimestampsForUser' );
47 $noWriteService->setNotificationTimestampsForUser(
57 $innerService->expects( $this->never() )->method(
'updateNotificationTimestamp' );
61 $noWriteService->updateNotificationTimestamp(
71 $innerService->expects( $this->never() )->method(
'resetNotificationTimestamp' );
75 $noWriteService->resetNotificationTimestamp(
84 $innerService->expects( $this->once() )->method(
'countWatchedItems' )->willReturn( __METHOD__ );
87 $return = $noWriteService->countWatchedItems(
90 $this->assertEquals( __METHOD__, $return );
96 $innerService->expects( $this->once() )->method(
'countWatchers' )->willReturn( __METHOD__ );
99 $return = $noWriteService->countWatchers(
102 $this->assertEquals( __METHOD__, $return );
108 $innerService->expects( $this->once() )
109 ->method(
'countVisitingWatchers' )
110 ->willReturn( __METHOD__ );
113 $return = $noWriteService->countVisitingWatchers(
117 $this->assertEquals( __METHOD__, $return );
123 $innerService->expects( $this->once() )
124 ->method(
'countVisitingWatchersMultiple' )
125 ->willReturn( __METHOD__ );
128 $return = $noWriteService->countWatchersMultiple(
132 $this->assertEquals( __METHOD__, $return );
138 $innerService->expects( $this->once() )
139 ->method(
'countVisitingWatchersMultiple' )
140 ->willReturn( __METHOD__ );
143 $return = $noWriteService->countVisitingWatchersMultiple(
147 $this->assertEquals( __METHOD__, $return );
153 $innerService->expects( $this->once() )->method(
'getWatchedItem' )->willReturn( __METHOD__ );
156 $return = $noWriteService->getWatchedItem(
160 $this->assertEquals( __METHOD__, $return );
166 $innerService->expects( $this->once() )->method(
'loadWatchedItem' )->willReturn( __METHOD__ );
169 $return = $noWriteService->loadWatchedItem(
173 $this->assertEquals( __METHOD__, $return );
179 $innerService->expects( $this->once() )
180 ->method(
'getWatchedItemsForUser' )
181 ->willReturn( __METHOD__ );
184 $return = $noWriteService->getWatchedItemsForUser(
188 $this->assertEquals( __METHOD__, $return );
194 $innerService->expects( $this->once() )->method(
'isWatched' )->willReturn( __METHOD__ );
197 $return = $noWriteService->isWatched(
201 $this->assertEquals( __METHOD__, $return );
207 $innerService->expects( $this->once() )
208 ->method(
'getNotificationTimestampsBatch' )
209 ->willReturn( __METHOD__ );
212 $return = $noWriteService->getNotificationTimestampsBatch(
216 $this->assertEquals( __METHOD__, $return );
222 $innerService->expects( $this->once() )
223 ->method(
'countUnreadNotifications' )
224 ->willReturn( __METHOD__ );
227 $return = $noWriteService->countUnreadNotifications(
231 $this->assertEquals( __METHOD__, $return );
240 $noWriteService->duplicateAllAssociatedEntries(