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 Nov 17 07:11:04 2019