MediaWiki  1.27.2
WatchedItemUnitTest Class Reference
Inheritance diagram for WatchedItemUnitTest:
Collaboration diagram for WatchedItemUnitTest:

Public Member Functions

 provideBooleans ()
 
 provideUserTitleTimestamp ()
 
 testAddWatch ()
 
 testBatchAddWatch ()
 
 testConstruction ($user, LinkTarget $linkTarget, $notifTimestamp)
 provideUserTitleTimestamp More...
 
 testDuplicateEntries ()
 
 testFromUserTitle ($user, $linkTarget, $timestamp)
 provideUserTitleTimestamp More...
 
 testIsWatched ($returnValue)
 provideBooleans More...
 
 testRemoveWatch ()
 
 testResetNotificationTimestamp ($user, $linkTarget, $timestamp)
 provideUserTitleTimestamp More...
 

Private Member Functions

 getMockWatchedItemStore ()
 

Detailed Description

Author
Addshore

WatchedItem

Definition at line 9 of file WatchedItemUnitTest.php.

Member Function Documentation

WatchedItemUnitTest::getMockWatchedItemStore ( )
private
Returns
PHPUnit_Framework_MockObject_MockObject|WatchedItemStore

Definition at line 22 of file WatchedItemUnitTest.php.

References class.

Referenced by testBatchAddWatch(), testDuplicateEntries(), testFromUserTitle(), and testResetNotificationTimestamp().

WatchedItemUnitTest::provideBooleans ( )

Definition at line 127 of file WatchedItemUnitTest.php.

References false, and true.

WatchedItemUnitTest::provideUserTitleTimestamp ( )

Definition at line 11 of file WatchedItemUnitTest.php.

References User\newFromId(), and Title\newFromText().

WatchedItemUnitTest::testAddWatch ( )

Definition at line 97 of file WatchedItemUnitTest.php.

References $timestamp, $title, $user, class, and Title\newFromText().

WatchedItemUnitTest::testConstruction (   $user,
LinkTarget  $linkTarget,
  $notifTimestamp 
)
WatchedItemUnitTest::testFromUserTitle (   $user,
  $linkTarget,
  $timestamp 
)
WatchedItemUnitTest::testIsWatched (   $returnValue)

provideBooleans

Definition at line 137 of file WatchedItemUnitTest.php.

References $timestamp, $title, $user, class, and Title\newFromText().

WatchedItemUnitTest::testRemoveWatch ( )

Definition at line 112 of file WatchedItemUnitTest.php.

References $timestamp, $title, $user, class, and Title\newFromText().

WatchedItemUnitTest::testResetNotificationTimestamp (   $user,
  $linkTarget,
  $timestamp 
)

The documentation for this class was generated from the following file: