|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilBuddyListTest. More...
Inheritance diagram for ilBuddyListTest:
Collaboration diagram for ilBuddyListTest:Data Fields | |
| const | BUDDY_LIST_OWNER_ID = -1 |
| const | BUDDY_LIST_BUDDY_ID = -2 |
Protected Attributes | |
| $buddylist | |
Private Member Functions | |
| setPriorRelationState (ilBuddySystemRelation $relation, ilBuddySystemRelationState $state) | |
Additional Inherited Members | |
Protected Member Functions inherited from ilBuddySystemBaseTest | |
| setGlobalVariable ($name, $value) | |
| assertException ($exception_class) | |
|
finalprivate |
Definition at line 470 of file ilBuddyListTest.php.
References $state.
Referenced by testAlreadyGivenStateExceptionIsThrownWhenALinkedRelationShouldBeMarkedAsLinked(), testAlreadyGivenStateExceptionIsThrownWhenAnIgnoredRelationShouldBeMarkedAsIgnored(), testAlreadyGivenStateExceptionIsThrownWhenAnUnlinkedRelationShouldBeMarkedAsUnlinked(), testAlreadyGivenStateExceptionIsThrownWhenARequestedRelationShouldBeMarkedAsRequested(), and testStateTransitionExceptionIsThrownWhenALinkedRelationShouldBeMarkedAsIgnored().
Here is the caller graph for this function:| ilBuddyListTest::setUp | ( | ) |
Definition at line 24 of file ilBuddyListTest.php.
References ilBuddySystemBaseTest\setGlobalVariable().
Here is the call graph for this function:| ilBuddyListTest::testAlreadyGivenStateExceptionIsThrownWhenALinkedRelationShouldBeMarkedAsLinked | ( | ) |
@expectedException ilBuddySystemRelationStateAlreadyGivenException
Definition at line 482 of file ilBuddyListTest.php.
References $buddylist, $state, ilBuddySystemBaseTest\assertException(), ilBuddyList\getInstanceByUserId(), and setPriorRelationState().
Here is the call graph for this function:| ilBuddyListTest::testAlreadyGivenStateExceptionIsThrownWhenAnIgnoredRelationShouldBeMarkedAsIgnored | ( | ) |
@expectedException ilBuddySystemRelationStateAlreadyGivenException
Definition at line 502 of file ilBuddyListTest.php.
References $buddylist, $state, ilBuddySystemBaseTest\assertException(), ilBuddyList\getInstanceByUserId(), and setPriorRelationState().
Here is the call graph for this function:| ilBuddyListTest::testAlreadyGivenStateExceptionIsThrownWhenAnUnlinkedRelationShouldBeMarkedAsUnlinked | ( | ) |
@expectedException ilBuddySystemRelationStateAlreadyGivenException
Definition at line 522 of file ilBuddyListTest.php.
References $buddylist, $state, ilBuddySystemBaseTest\assertException(), ilBuddyList\getInstanceByUserId(), and setPriorRelationState().
Here is the call graph for this function:| ilBuddyListTest::testAlreadyGivenStateExceptionIsThrownWhenARequestedRelationShouldBeMarkedAsRequested | ( | ) |
@expectedException ilBuddySystemRelationStateAlreadyGivenException
Definition at line 542 of file ilBuddyListTest.php.
References $buddylist, $state, ilBuddySystemBaseTest\assertException(), ilBuddyList\getInstanceByUserId(), ilBuddySystemBaseTest\setGlobalVariable(), and setPriorRelationState().
Here is the call graph for this function:| ilBuddyListTest::testDifferentRelationStatesCanBeRetrieved | ( | ) |
Definition at line 389 of file ilBuddyListTest.php.
References $buddylist, BUDDY_LIST_BUDDY_ID, and ilBuddyList\getInstanceByUserId().
Here is the call graph for this function:| ilBuddyListTest::testExceptionIsThrownWhenNonNumericOwnerIdIsPassed | ( | ) |
@expectedException InvalidArgumentException
Definition at line 451 of file ilBuddyListTest.php.
References $buddylist, ilBuddySystemBaseTest\assertException(), and ilBuddyList\getInstanceByUserId().
Here is the call graph for this function:| ilBuddyListTest::testExceptionIsThrownWhenRelationIsRequestedForANonNumericUserId | ( | ) |
@expectedException InvalidArgumentException
Definition at line 462 of file ilBuddyListTest.php.
References $buddylist, ilBuddySystemBaseTest\assertException(), and ilBuddyList\getInstanceByUserId().
Here is the call graph for this function:| ilBuddyListTest::testInstanceByBeCreatedBySingletonMethod | ( | ) |
Definition at line 68 of file ilBuddyListTest.php.
References $buddylist, and ilBuddyList\getInstanceByUserId().
Here is the call graph for this function:| ilBuddyListTest::testInstanceCanBeCreatedByGlobalUserObject | ( | ) |
Definition at line 43 of file ilBuddyListTest.php.
References ilBuddyList\getInstanceByGlobalUser(), and ilBuddySystemBaseTest\setGlobalVariable().
Here is the call graph for this function:| ilBuddyListTest::testInstanceCannotBeCreatedByAnonymousGlobalUserObject | ( | ) |
@expectedException ilBuddySystemException
Definition at line 55 of file ilBuddyListTest.php.
References ilBuddySystemBaseTest\assertException(), ilBuddyList\getInstanceByGlobalUser(), and ilBuddySystemBaseTest\setGlobalVariable().
Here is the call graph for this function:| ilBuddyListTest::testListIsInitiallyEmpty | ( | ) |
Definition at line 86 of file ilBuddyListTest.php.
References $buddylist, and ilBuddyList\getInstanceByUserId().
Here is the call graph for this function:| ilBuddyListTest::testRelationCannotBeRequestedForAnonymous | ( | ) |
@expectedException ilBuddySystemException
Definition at line 294 of file ilBuddyListTest.php.
References $buddylist, ilBuddySystemBaseTest\assertException(), and ilBuddyList\getInstanceByUserId().
Here is the call graph for this function:| ilBuddyListTest::testRelationCannotBeRequestedForUnknownUserAccounts | ( | ) |
@expectedException ilBuddySystemException
Definition at line 314 of file ilBuddyListTest.php.
References $buddylist, ilBuddySystemBaseTest\assertException(), ilBuddyList\getInstanceByUserId(), and ilBuddySystemBaseTest\setGlobalVariable().
Here is the call graph for this function:| ilBuddyListTest::testRelationRequestCanBeApprovedByTheRelationTarget | ( | ) |
Definition at line 190 of file ilBuddyListTest.php.
References $buddylist, ilBuddyList\getInstanceByUserId(), and ilBuddySystemBaseTest\setGlobalVariable().
Here is the call graph for this function:| ilBuddyListTest::testRelationRequestCanBeIgnoredByTheRelationTarget | ( | ) |
Definition at line 259 of file ilBuddyListTest.php.
References $buddylist, ilBuddyList\getInstanceByUserId(), and ilBuddySystemBaseTest\setGlobalVariable().
Here is the call graph for this function:| ilBuddyListTest::testRelationRequestCannotBeApprovedByTheRelationOwner | ( | ) |
@expectedException ilBuddySystemException
Definition at line 156 of file ilBuddyListTest.php.
References $buddylist, ilBuddySystemBaseTest\assertException(), ilBuddyList\getInstanceByUserId(), and ilBuddySystemBaseTest\setGlobalVariable().
Here is the call graph for this function:| ilBuddyListTest::testRelationRequestCannotBeIgnoredByTheRelationOwner | ( | ) |
@expectedException ilBuddySystemException
Definition at line 225 of file ilBuddyListTest.php.
References $buddylist, ilBuddySystemBaseTest\assertException(), ilBuddyList\getInstanceByUserId(), and ilBuddySystemBaseTest\setGlobalVariable().
Here is the call graph for this function:| ilBuddyListTest::testRepositoryIsEnquiredOnlyOnceToFetchRelationsWhenCalledImplicitly | ( | ) |
Definition at line 122 of file ilBuddyListTest.php.
References $buddylist, ilBuddyList\getInstanceByUserId(), and ilBuddySystemBaseTest\setGlobalVariable().
Here is the call graph for this function:| ilBuddyListTest::testRepositoryIsEnquiredToFetchRelationsWhenRequestedExplicitly | ( | ) |
Definition at line 101 of file ilBuddyListTest.php.
References $buddylist, and ilBuddyList\getInstanceByUserId().
Here is the call graph for this function:| ilBuddyListTest::testRepositoryIsEnquiredWhenBuddyListShouldBeDestroyed | ( | ) |
Definition at line 339 of file ilBuddyListTest.php.
References $buddylist, and ilBuddyList\getInstanceByUserId().
Here is the call graph for this function:| ilBuddyListTest::testStateTransitionExceptionIsThrownWhenALinkedRelationShouldBeMarkedAsIgnored | ( | ) |
@expectedException ilBuddySystemRelationStateTransitionException
Definition at line 568 of file ilBuddyListTest.php.
References $buddylist, $state, ilBuddySystemBaseTest\assertException(), ilBuddyList\getInstanceByUserId(), and setPriorRelationState().
Here is the call graph for this function:| ilBuddyListTest::testUnlinkedRelationIsReturnedWhenRelationWasRequestedForAUknownBuddyId | ( | ) |
Definition at line 353 of file ilBuddyListTest.php.
References $buddylist, and ilBuddyList\getInstanceByUserId().
Here is the call graph for this function:| ilBuddyListTest::testValuesCanBeFetchedByGettersWhenSetBySetters | ( | ) |
Definition at line 367 of file ilBuddyListTest.php.
References $buddylist, and ilBuddyList\getInstanceByUserId().
Here is the call graph for this function:
|
protected |
Definition at line 19 of file ilBuddyListTest.php.
Referenced by testAlreadyGivenStateExceptionIsThrownWhenALinkedRelationShouldBeMarkedAsLinked(), testAlreadyGivenStateExceptionIsThrownWhenAnIgnoredRelationShouldBeMarkedAsIgnored(), testAlreadyGivenStateExceptionIsThrownWhenAnUnlinkedRelationShouldBeMarkedAsUnlinked(), testAlreadyGivenStateExceptionIsThrownWhenARequestedRelationShouldBeMarkedAsRequested(), testDifferentRelationStatesCanBeRetrieved(), testExceptionIsThrownWhenNonNumericOwnerIdIsPassed(), testExceptionIsThrownWhenRelationIsRequestedForANonNumericUserId(), testInstanceByBeCreatedBySingletonMethod(), testListIsInitiallyEmpty(), testRelationCannotBeRequestedForAnonymous(), testRelationCannotBeRequestedForUnknownUserAccounts(), testRelationRequestCanBeApprovedByTheRelationTarget(), testRelationRequestCanBeIgnoredByTheRelationTarget(), testRelationRequestCannotBeApprovedByTheRelationOwner(), testRelationRequestCannotBeIgnoredByTheRelationOwner(), testRepositoryIsEnquiredOnlyOnceToFetchRelationsWhenCalledImplicitly(), testRepositoryIsEnquiredToFetchRelationsWhenRequestedExplicitly(), testRepositoryIsEnquiredWhenBuddyListShouldBeDestroyed(), testStateTransitionExceptionIsThrownWhenALinkedRelationShouldBeMarkedAsIgnored(), testUnlinkedRelationIsReturnedWhenRelationWasRequestedForAUknownBuddyId(), and testValuesCanBeFetchedByGettersWhenSetBySetters().
| const ilBuddyListTest::BUDDY_LIST_BUDDY_ID = -2 |
Definition at line 14 of file ilBuddyListTest.php.
Referenced by testDifferentRelationStatesCanBeRetrieved().
| const ilBuddyListTest::BUDDY_LIST_OWNER_ID = -1 |
Definition at line 13 of file ilBuddyListTest.php.