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

RoleTest Class Reference

Inheritance diagram for RoleTest:
ZurmoBaseTest BaseTest

Public Member Functions

 setup ()
 testAddingUserToRole ()
 testAddingChildRoleAsAParentRole ()
 testCreateRoleWithNoUsersAndNoParents ()
 testAddingUserToRoleWithNoParentsAndNoUsers ()
 testAddingUserToRoleWithNoParentsAndOneUser ()
 testMovingRoleWithNoUsersToParent ()
 testMovingRoleWithOneUserToParent ()
 testMovingRoleWithTwoUsersToParent ()
 testRemovingRoleWithNoUsersFromParent ()
 testRemovingRoleWithOneUserFromParent ()
 testRemovingRoleWithTwoUsersFromParent ()

Static Public Member Functions

static setUpBeforeClass ()

Protected Member Functions

 createRole ($name)
 addUserToRole (User $user, Role $role)
 moveRoleToParent ($roleName, $parentName=null)
 removeRoleFromParent ($roleName, $parentName=null)
 addOrRemoveRoleFromParent ($roleName, $parentName=null, $add=true)

Protected Attributes

 $roleWithNoUsers
 $roleWithOneUsers
 $roleWithTwoUsers

Detailed Description

Definition at line 37 of file RoleTest.php.


Member Function Documentation

testAddingUserToRoleWithNoParentsAndNoUsers (  ) 

testCreateRoleWithNoUsersAndNoParents

Definition at line 109 of file RoleTest.php.

testAddingUserToRoleWithNoParentsAndOneUser (  ) 

testAddingUserToRoleWithNoParentsAndNoUsers

Definition at line 131 of file RoleTest.php.

testMovingRoleWithNoUsersToParent (  ) 

testAddingUserToRoleWithNoParentsAndOneUser

Definition at line 158 of file RoleTest.php.

testMovingRoleWithOneUserToParent (  ) 

testMovingRoleWithNoUsersToParent

Definition at line 166 of file RoleTest.php.

testMovingRoleWithTwoUsersToParent (  ) 

testMovingRoleWithOneUserToParent

Definition at line 174 of file RoleTest.php.

testRemovingRoleWithNoUsersFromParent (  ) 

testMovingRoleWithNoUsersToParent

Definition at line 182 of file RoleTest.php.

testRemovingRoleWithOneUserFromParent (  ) 

testMovingRoleWithOneUserToParent

Definition at line 190 of file RoleTest.php.

testRemovingRoleWithTwoUsersFromParent (  ) 

testMovingRoleWithTwoUsersToParent

Definition at line 198 of file RoleTest.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sun Mar 24 07:10:59 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