PHP Class eZ\Publish\Core\Repository\Tests\Service\Integration\RoleBase

Inheritance: extends Base
Show file Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
testAddPolicy ( ) Test adding policy to role.
testAssignRoleToUser ( ) Test assigning role to user.
testAssignRoleToUserGroup ( ) Test assigning role to user group.
testCreateRole ( ) Test creating a role.
testCreateRoleThrowsInvalidArgumentException ( ) Test creating a role throwing InvalidArgumentException.
testCreateRoleWithPolicies ( ) Test creating a role with policies.
testDeleteRole ( ) Test deleting a role.
testGetRoleAssignments ( ) Test fetching all role assignments for specified role.
testGetRoleAssignmentsForUser ( ) Test fetching role assignments for specified user.
testGetRoleAssignmentsForUserGroup ( ) Test fetching role assignments for specified user group.
testIsPropertySet ( ) Test if property exists.
testLoadPoliciesByNonExistingUserId ( ) Test loading policies by non existing user ID.
testLoadPoliciesByUserId ( ) Test loading policies by user ID.
testLoadRole ( ) Test loading role by id.
testLoadRoleByIdentifier ( ) Test loading role by identifier.
testLoadRoleByIdentifierThrowsNotFoundException ( ) Test loading role by identifier throwing NotFoundException.
testLoadRoleThrowsNotFoundException ( ) Test loading role by id throwing NotFoundException.
testLoadRoles ( ) Test loading all roles.
testMissingProperty ( ) Test retrieving missing property.
testNewClass ( ) Test a new class and default values on properties.
testNewPolicyCreateStruct ( ) Test creating new PolicyCreateStruct.
testNewPolicyUpdateStruct ( ) Test creating new PolicyUpdateStruct.
testNewRoleCreateStruct ( ) Test creating new RoleCreateStruct.
testNewRoleUpdateStruct ( ) Test creating new RoleUpdateStruct.
testReadOnlyProperty ( ) Test setting read only property.
testRemovePolicy ( ) Test removing policy from the role.
testUnassignRoleFromUser ( ) Test unassigning role from user.
testUnassignRoleFromUserGroup ( ) Test unassigning role from user group.
testUnassignRoleFromUserGroupThrowsInvalidArgumentException ( ) Test unassigning role from user group which is not already assigned to the group.
testUnassignRoleFromUserGroupUnauthorizedException ( ) Test unassigning role from user group.
testUnassignRoleFromUserThrowsInvalidArgumentException ( ) Test unassigning role from user which is not already assigned to the user.
testUnsetProperty ( ) Test unsetting a property.
testUpdatePolicy ( ) Test updating policies of a role, depends on proper eZ Publish clean data which has a number of policies and limitations applied to Anonymous role.
testUpdateRole ( ) Test updating role.
testUpdateRoleThrowsInvalidArgumentException ( ) Test updating role throwing InvalidArgumentException.

Method Details

testAddPolicy() public method

Test adding policy to role.
public testAddPolicy ( )

testAssignRoleToUser() public method

Test assigning role to user.

testAssignRoleToUserGroup() public method

Test assigning role to user group.

testCreateRole() public method

Test creating a role.
public testCreateRole ( )

testCreateRoleThrowsInvalidArgumentException() public method

Test creating a role throwing InvalidArgumentException.

testCreateRoleWithPolicies() public method

Test creating a role with policies.

testDeleteRole() public method

Test deleting a role.
public testDeleteRole ( )

testGetRoleAssignments() public method

Test fetching all role assignments for specified role.

testGetRoleAssignmentsForUser() public method

Test fetching role assignments for specified user.

testGetRoleAssignmentsForUserGroup() public method

Test fetching role assignments for specified user group.

testIsPropertySet() public method

Test if property exists.
public testIsPropertySet ( )

testLoadPoliciesByNonExistingUserId() public method

Test loading policies by non existing user ID.

testLoadPoliciesByUserId() public method

Test loading policies by user ID.

testLoadRole() public method

Test loading role by id.
public testLoadRole ( )

testLoadRoleByIdentifier() public method

Test loading role by identifier.

testLoadRoleByIdentifierThrowsNotFoundException() public method

Test loading role by identifier throwing NotFoundException.

testLoadRoleThrowsNotFoundException() public method

Test loading role by id throwing NotFoundException.

testLoadRoles() public method

Test loading all roles.
public testLoadRoles ( )

testMissingProperty() public method

Test retrieving missing property.
public testMissingProperty ( )

testNewClass() public method

Test a new class and default values on properties.
public testNewClass ( )

testNewPolicyCreateStruct() public method

Test creating new PolicyCreateStruct.

testNewPolicyUpdateStruct() public method

Test creating new PolicyUpdateStruct.

testNewRoleCreateStruct() public method

Test creating new RoleCreateStruct.

testNewRoleUpdateStruct() public method

Test creating new RoleUpdateStruct.

testReadOnlyProperty() public method

Test setting read only property.

testRemovePolicy() public method

Test removing policy from the role.
public testRemovePolicy ( )

testUnassignRoleFromUser() public method

Test unassigning role from user.

testUnassignRoleFromUserGroup() public method

Test unassigning role from user group.

testUnassignRoleFromUserGroupThrowsInvalidArgumentException() public method

Test unassigning role from user group which is not already assigned to the group.

testUnassignRoleFromUserGroupUnauthorizedException() public method

But on current admin user so he lacks access to read roles.

testUnassignRoleFromUserThrowsInvalidArgumentException() public method

Test unassigning role from user which is not already assigned to the user.

testUnsetProperty() public method

Test unsetting a property.
public testUnsetProperty ( )

testUpdatePolicy() public method

Test updating policies of a role, depends on proper eZ Publish clean data which has a number of policies and limitations applied to Anonymous role.
public testUpdatePolicy ( )

testUpdateRole() public method

Test updating role.
public testUpdateRole ( )

testUpdateRoleThrowsInvalidArgumentException() public method

Test updating role throwing InvalidArgumentException.