All Data Structures Functions Variables Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
RoleTest Class Reference
Inheritance diagram for RoleTest:
ZurmoBaseTest BaseTest

Public Member Functions

 setup ()
 
 testAddingUserToRole ()
 
 testAddingChildRoleAsAParentRole ()
 
 testCreateRoleWithNoUsersAndNoParents ()
 
 testAddingUserToRoleWithNoParentsAndNoUsers ()
 
 testAddingUserToRoleWithNoParentsAndOneUser ()
 
 testMovingRoleWithNoUsersToParent ()
 
 testMovingRoleWithOneUserToParent ()
 
 testMovingRoleWithTwoUsersToParent ()
 
 testRemovingRoleWithNoUsersFromParent ()
 
 testRemovingRoleWithOneUserFromParent ()
 
 testRemovingRoleWithTwoUsersFromParent ()
 
- Public Member Functions inherited from ZurmoBaseTest
 setUp ()
 
- Public Member Functions inherited from BaseTest
 setup ()
 
 teardown ()
 

Static Public Member Functions

static setUpBeforeClass ()
 
- Static Public Member Functions inherited from ZurmoBaseTest
static setUpBeforeClass ()
 
static tearDownAfterClass ()
 
- Static Public Member Functions inherited from BaseTest
static setUpBeforeClass ()
 
static tearDownAfterClass ()
 
static resetAndPopulateFilesArrayByFilePathAndName ($arrayName, $filePath, $fileName)
 
static getDependentTestModelClassNames ()
 
static getReflectedPropertyValue ($object, $propertyName)
 

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 Member Functions inherited from ZurmoBaseTest
 endPrintOutputBufferAndFail ()
 
- Protected Member Functions inherited from BaseTest
 assertWithinTolerance ($expected, $actual, $plusMinus)
 
 assertWithinPercentage ($expected, $actual, $percentage)
 
 isDebug ()
 

Protected Attributes

 $roleWithNoUsers
 
 $roleWithOneUsers
 
 $roleWithTwoUsers
 

Additional Inherited Members

- Static Public Attributes inherited from ZurmoBaseTest
static $activateDefaultLanguages = false
 
- Static Public Attributes inherited from BaseTest
static $activateDefaultLanguages = false
 
- Static Protected Member Functions inherited from ZurmoBaseTest
static startOutputBuffer ()
 
static endAndGetOutputBuffer ()
 
- Static Protected Member Functions inherited from BaseTest
static getProtectedMethod ($className, $methodName)
 
- Static Protected Attributes inherited from ZurmoBaseTest
static $activitiesObserver
 
static $conversationsObserver
 
static $emailMessagesObserver
 
static $contactLatestActivityDateTimeObserver
 
static $accountLatestActivityDateTimeObserver
 
static $accountContactAffiliationObserver
 

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:
Generated on Mon Jan 27 2020 07:10:48