ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilBuddyListTest. More...
Data Fields | |
const | BUDDY_LIST_OWNER_ID = -1 |
const | BUDDY_LIST_BUDDY_ID = -2 |
Protected Member Functions | |
setGlobalVariable ($name, $value) | |
Protected Member Functions inherited from ilBuddySystemBaseTest | |
assertException ($exception_class) | |
Protected Attributes | |
$buddylist | |
Private Member Functions | |
setPriorRelationState (ilBuddySystemRelation $relation, ilBuddySystemRelationState $state) | |
|
protected |
string | $name | |
mixed | $value |
Definition at line 25 of file ilBuddyListTest.php.
References $DIC, and $GLOBALS.
Referenced by setUp(), testAlreadyGivenStateExceptionIsThrownWhenARequestedRelationShouldBeMarkedAsRequested(), testInstanceCanBeCreatedByGlobalUserObject(), testInstanceCannotBeCreatedByAnonymousGlobalUserObject(), testRelationCannotBeRequestedForUnknownUserAccounts(), testRelationRequestCanBeApprovedByTheRelationTarget(), testRelationRequestCanBeIgnoredByTheRelationTarget(), testRelationRequestCannotBeApprovedByTheRelationOwner(), testRelationRequestCannotBeIgnoredByTheRelationOwner(), and testRepositoryIsEnquiredOnlyOnceToFetchRelationsWhenCalledImplicitly().
|
finalprivate |
Definition at line 486 of file ilBuddyListTest.php.
Referenced by testAlreadyGivenStateExceptionIsThrownWhenALinkedRelationShouldBeMarkedAsLinked(), testAlreadyGivenStateExceptionIsThrownWhenAnIgnoredRelationShouldBeMarkedAsIgnored(), testAlreadyGivenStateExceptionIsThrownWhenAnUnlinkedRelationShouldBeMarkedAsUnlinked(), testAlreadyGivenStateExceptionIsThrownWhenARequestedRelationShouldBeMarkedAsRequested(), and testStateTransitionExceptionIsThrownWhenALinkedRelationShouldBeMarkedAsIgnored().
ilBuddyListTest::setUp | ( | ) |
Definition at line 40 of file ilBuddyListTest.php.
References array, and setGlobalVariable().
ilBuddyListTest::testAlreadyGivenStateExceptionIsThrownWhenALinkedRelationShouldBeMarkedAsLinked | ( | ) |
ilBuddySystemRelationStateAlreadyGivenException
Definition at line 498 of file ilBuddyListTest.php.
References $buddylist, ilBuddySystemBaseTest\assertException(), ilBuddyList\getInstanceByUserId(), and setPriorRelationState().
ilBuddyListTest::testAlreadyGivenStateExceptionIsThrownWhenAnIgnoredRelationShouldBeMarkedAsIgnored | ( | ) |
ilBuddySystemRelationStateAlreadyGivenException
Definition at line 518 of file ilBuddyListTest.php.
References $buddylist, ilBuddySystemBaseTest\assertException(), ilBuddyList\getInstanceByUserId(), and setPriorRelationState().
ilBuddyListTest::testAlreadyGivenStateExceptionIsThrownWhenAnUnlinkedRelationShouldBeMarkedAsUnlinked | ( | ) |
ilBuddySystemRelationStateAlreadyGivenException
Definition at line 538 of file ilBuddyListTest.php.
References $buddylist, ilBuddySystemBaseTest\assertException(), ilBuddyList\getInstanceByUserId(), and setPriorRelationState().
ilBuddyListTest::testAlreadyGivenStateExceptionIsThrownWhenARequestedRelationShouldBeMarkedAsRequested | ( | ) |
ilBuddySystemRelationStateAlreadyGivenException
Definition at line 558 of file ilBuddyListTest.php.
References $buddylist, array, ilBuddySystemBaseTest\assertException(), ilBuddyList\getInstanceByUserId(), setGlobalVariable(), and setPriorRelationState().
ilBuddyListTest::testDifferentRelationStatesCanBeRetrieved | ( | ) |
Definition at line 405 of file ilBuddyListTest.php.
References $buddylist, array, and ilBuddyList\getInstanceByUserId().
ilBuddyListTest::testExceptionIsThrownWhenNonNumericOwnerIdIsPassed | ( | ) |
InvalidArgumentException
Definition at line 467 of file ilBuddyListTest.php.
References $buddylist, ilBuddySystemBaseTest\assertException(), and ilBuddyList\getInstanceByUserId().
ilBuddyListTest::testExceptionIsThrownWhenRelationIsRequestedForANonNumericUserId | ( | ) |
InvalidArgumentException
Definition at line 478 of file ilBuddyListTest.php.
References $buddylist, ilBuddySystemBaseTest\assertException(), and ilBuddyList\getInstanceByUserId().
ilBuddyListTest::testInstanceByBeCreatedBySingletonMethod | ( | ) |
Definition at line 84 of file ilBuddyListTest.php.
References $buddylist, array, and ilBuddyList\getInstanceByUserId().
ilBuddyListTest::testInstanceCanBeCreatedByGlobalUserObject | ( | ) |
Definition at line 59 of file ilBuddyListTest.php.
References array, ilBuddyList\getInstanceByGlobalUser(), and setGlobalVariable().
ilBuddyListTest::testInstanceCannotBeCreatedByAnonymousGlobalUserObject | ( | ) |
Definition at line 71 of file ilBuddyListTest.php.
References array, ilBuddySystemBaseTest\assertException(), ilBuddyList\getInstanceByGlobalUser(), and setGlobalVariable().
ilBuddyListTest::testListIsInitiallyEmpty | ( | ) |
Definition at line 102 of file ilBuddyListTest.php.
References $buddylist, array, and ilBuddyList\getInstanceByUserId().
ilBuddyListTest::testRelationCannotBeRequestedForAnonymous | ( | ) |
Definition at line 310 of file ilBuddyListTest.php.
References $buddylist, array, ilBuddySystemBaseTest\assertException(), and ilBuddyList\getInstanceByUserId().
ilBuddyListTest::testRelationCannotBeRequestedForUnknownUserAccounts | ( | ) |
Definition at line 330 of file ilBuddyListTest.php.
References $buddylist, array, ilBuddySystemBaseTest\assertException(), ilBuddyList\getInstanceByUserId(), and setGlobalVariable().
ilBuddyListTest::testRelationRequestCanBeApprovedByTheRelationTarget | ( | ) |
Definition at line 206 of file ilBuddyListTest.php.
References $buddylist, array, ilBuddyList\getInstanceByUserId(), and setGlobalVariable().
ilBuddyListTest::testRelationRequestCanBeIgnoredByTheRelationTarget | ( | ) |
Definition at line 275 of file ilBuddyListTest.php.
References $buddylist, array, ilBuddyList\getInstanceByUserId(), and setGlobalVariable().
ilBuddyListTest::testRelationRequestCannotBeApprovedByTheRelationOwner | ( | ) |
Definition at line 172 of file ilBuddyListTest.php.
References $buddylist, array, ilBuddySystemBaseTest\assertException(), ilBuddyList\getInstanceByUserId(), and setGlobalVariable().
ilBuddyListTest::testRelationRequestCannotBeIgnoredByTheRelationOwner | ( | ) |
Definition at line 241 of file ilBuddyListTest.php.
References $buddylist, array, ilBuddySystemBaseTest\assertException(), ilBuddyList\getInstanceByUserId(), and setGlobalVariable().
ilBuddyListTest::testRepositoryIsEnquiredOnlyOnceToFetchRelationsWhenCalledImplicitly | ( | ) |
Definition at line 138 of file ilBuddyListTest.php.
References $buddylist, array, ilBuddyList\getInstanceByUserId(), and setGlobalVariable().
ilBuddyListTest::testRepositoryIsEnquiredToFetchRelationsWhenRequestedExplicitly | ( | ) |
Definition at line 117 of file ilBuddyListTest.php.
References $buddylist, array, and ilBuddyList\getInstanceByUserId().
ilBuddyListTest::testRepositoryIsEnquiredWhenBuddyListShouldBeDestroyed | ( | ) |
Definition at line 355 of file ilBuddyListTest.php.
References $buddylist, and ilBuddyList\getInstanceByUserId().
ilBuddyListTest::testStateTransitionExceptionIsThrownWhenALinkedRelationShouldBeMarkedAsIgnored | ( | ) |
ilBuddySystemRelationStateTransitionException
Definition at line 584 of file ilBuddyListTest.php.
References $buddylist, ilBuddySystemBaseTest\assertException(), ilBuddyList\getInstanceByUserId(), and setPriorRelationState().
ilBuddyListTest::testUnlinkedRelationIsReturnedWhenRelationWasRequestedForAUknownBuddyId | ( | ) |
Definition at line 369 of file ilBuddyListTest.php.
References $buddylist, array, and ilBuddyList\getInstanceByUserId().
ilBuddyListTest::testValuesCanBeFetchedByGettersWhenSetBySetters | ( | ) |
Definition at line 383 of file ilBuddyListTest.php.
References $buddylist, array, and ilBuddyList\getInstanceByUserId().
|
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.
const ilBuddyListTest::BUDDY_LIST_OWNER_ID = -1 |
Definition at line 13 of file ilBuddyListTest.php.