Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-header.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-header.php on line 8

GroupTest Class Reference

Inheritance diagram for GroupTest:
ZurmoBaseTest BaseTest

Public Member Functions

 setUp ()
 testSaveAndLoadGroup ()
 testReadGroupsOnUser ()
 testGroupsWithParentGroup ()
 testGroupsContainingGroupsAndContains ()
 testCreatingSavingLoadingRemovingFromSavingAndLoadingGroups ()
 testEveryoneOnlyCanExistOnce ()
 testSuperAdministratorsOnlyCanExistOnce ()
 testEveryoneOnlyCannotBeDeleted ()
 testSuperAdministratorsCannotBeDeleted ()
 testCannotSetAGroupsNameToEveryone ()
 testCannotSetAGroupsNameToSuperAdministrators ()
 testCannotChangeTheEveryoneGroupsName ()
 testCannotChangeTheSuperAdministratorsGroupsName ()
 testCanGetUsersFromTheEveryoneGroup ()
 testCannotAddUsersToTheEveryoneGroup ()
 testCanGetGroupsFromTheEveryoneGroupButItIsEmptyArray ()
 testCannotModifyGroupMembershipForTheTheEveryoneGroup ()
 testNonSuperAdministratorsCannotModifyGroupMembershipForTheTheSuperAdministratorsGroup ()
 testCannotSetEveryonesParentGroup ()
 testGetEveryonesParentGroupReturnsNull ()
 testEveryoneImplicitlyContainsAllGroups ()
 testEveryoneImplicitlyContainsAllUsers ()
 testCannotGetRightsFromTheSuperAdministratorsGroup ()
 testCannotSetRightsOnTheSuperAdministratorsGroup ()
 testCannotRemoveRightsOnTheSuperAdministratorsGroup ()
 testCannotRemoveAllRightsOnTheSuperAdministratorsGroup ()
 testSuperAdministratorsImplicitlyHasAllRights ()
 testSetParentOfGroup_ieBelongsToSideOfRelation ()
 testEveryOneGroupShouldHaveNoParentAfterSave ()
 testAccessingUsersGroupsAfterGroupIsDeleted ()
 testIsUserASuperAdministrator ()
 resolveEveryoneDisplayLabel ()

Static Public Member Functions

static setUpBeforeClass ()

Static Protected Member Functions

static fastContainsUserByGroupName ($groupName, $userId)
static fastContainsUserByGroupId ($groupId, $userId)

Detailed Description

Definition at line 37 of file GroupTest.php.


Member Function Documentation

testReadGroupsOnUser (  ) 

testSaveAndLoadGroup

Definition at line 98 of file GroupTest.php.

testGroupsWithParentGroup (  ) 

testSaveAndLoadGroup

Definition at line 134 of file GroupTest.php.

testGroupsContainingGroupsAndContains (  ) 

testSaveAndLoadGroup

Definition at line 163 of file GroupTest.php.

testCreatingSavingLoadingRemovingFromSavingAndLoadingGroups (  ) 

testGroupsContainingGroupsAndContains

Definition at line 336 of file GroupTest.php.

testEveryoneOnlyCannotBeDeleted (  ) 

NotSupportedException

Definition at line 486 of file GroupTest.php.

testSuperAdministratorsCannotBeDeleted (  ) 

NotSupportedException

Definition at line 496 of file GroupTest.php.

testCannotSetAGroupsNameToEveryone (  ) 

NotSupportedException

Definition at line 506 of file GroupTest.php.

testCannotSetAGroupsNameToSuperAdministrators (  ) 

NotSupportedException

Definition at line 515 of file GroupTest.php.

testCannotChangeTheEveryoneGroupsName (  ) 

NotSupportedException

Definition at line 524 of file GroupTest.php.

testCannotChangeTheSuperAdministratorsGroupsName (  ) 

NotSupportedException

Definition at line 533 of file GroupTest.php.

testNonSuperAdministratorsCannotModifyGroupMembershipForTheTheSuperAdministratorsGroup (  ) 

testCannotModifyGroupMembershipForTheTheEveryoneGroup

Definition at line 574 of file GroupTest.php.

testCannotSetEveryonesParentGroup (  ) 

NotSupportedException

Definition at line 590 of file GroupTest.php.

testEveryoneImplicitlyContainsAllGroups (  ) 

testCannotModifyGroupMembershipForTheTheEveryoneGroup

Definition at line 607 of file GroupTest.php.

testEveryoneImplicitlyContainsAllUsers (  ) 

testCannotAddUsersToTheEveryoneGroup

Definition at line 620 of file GroupTest.php.

testCannotGetRightsFromTheSuperAdministratorsGroup (  ) 

NotSupportedException

Definition at line 633 of file GroupTest.php.

testCannotSetRightsOnTheSuperAdministratorsGroup (  ) 

testCannotModifyGroupMembershipForTheTheEveryoneGroup NotSupportedException

Definition at line 644 of file GroupTest.php.

testCannotRemoveRightsOnTheSuperAdministratorsGroup (  ) 

testCannotModifyGroupMembershipForTheTheEveryoneGroup NotSupportedException

Definition at line 655 of file GroupTest.php.

testCannotRemoveAllRightsOnTheSuperAdministratorsGroup (  ) 

testCannotModifyGroupMembershipForTheTheEveryoneGroup NotSupportedException

Definition at line 665 of file GroupTest.php.

testSuperAdministratorsImplicitlyHasAllRights (  ) 

testCannotModifyGroupMembershipForTheTheEveryoneGroup

Definition at line 674 of file GroupTest.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Wed Feb 20 07:10:49 2019

Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-footer.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-footer.php on line 8