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

Inheritance: extends Base
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Méthodes publiques

Méthode 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 méthode

Test adding policy to role.
public testAddPolicy ( )

testAssignRoleToUser() public méthode

Test assigning role to user.

testAssignRoleToUserGroup() public méthode

Test assigning role to user group.

testCreateRole() public méthode

Test creating a role.
public testCreateRole ( )

testCreateRoleThrowsInvalidArgumentException() public méthode

Test creating a role throwing InvalidArgumentException.

testCreateRoleWithPolicies() public méthode

Test creating a role with policies.

testDeleteRole() public méthode

Test deleting a role.
public testDeleteRole ( )

testGetRoleAssignments() public méthode

Test fetching all role assignments for specified role.

testGetRoleAssignmentsForUser() public méthode

Test fetching role assignments for specified user.

testGetRoleAssignmentsForUserGroup() public méthode

Test fetching role assignments for specified user group.

testIsPropertySet() public méthode

Test if property exists.
public testIsPropertySet ( )

testLoadPoliciesByNonExistingUserId() public méthode

Test loading policies by non existing user ID.

testLoadPoliciesByUserId() public méthode

Test loading policies by user ID.

testLoadRole() public méthode

Test loading role by id.
public testLoadRole ( )

testLoadRoleByIdentifier() public méthode

Test loading role by identifier.

testLoadRoleByIdentifierThrowsNotFoundException() public méthode

Test loading role by identifier throwing NotFoundException.

testLoadRoleThrowsNotFoundException() public méthode

Test loading role by id throwing NotFoundException.

testLoadRoles() public méthode

Test loading all roles.
public testLoadRoles ( )

testMissingProperty() public méthode

Test retrieving missing property.
public testMissingProperty ( )

testNewClass() public méthode

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

testNewPolicyCreateStruct() public méthode

Test creating new PolicyCreateStruct.

testNewPolicyUpdateStruct() public méthode

Test creating new PolicyUpdateStruct.

testNewRoleCreateStruct() public méthode

Test creating new RoleCreateStruct.

testNewRoleUpdateStruct() public méthode

Test creating new RoleUpdateStruct.

testReadOnlyProperty() public méthode

Test setting read only property.

testRemovePolicy() public méthode

Test removing policy from the role.
public testRemovePolicy ( )

testUnassignRoleFromUser() public méthode

Test unassigning role from user.

testUnassignRoleFromUserGroup() public méthode

Test unassigning role from user group.

testUnassignRoleFromUserGroupThrowsInvalidArgumentException() public méthode

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

testUnassignRoleFromUserGroupUnauthorizedException() public méthode

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

testUnassignRoleFromUserThrowsInvalidArgumentException() public méthode

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

testUnsetProperty() public méthode

Test unsetting a property.
public testUnsetProperty ( )

testUpdatePolicy() public méthode

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 méthode

Test updating role.
public testUpdateRole ( )

testUpdateRoleThrowsInvalidArgumentException() public méthode

Test updating role throwing InvalidArgumentException.