PHP 클래스 eZ\Publish\Core\Repository\Tests\Service\Integration\RoleBase

상속: extends Base
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

공개 메소드들

메소드 설명
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.

메소드 상세

testAddPolicy() 공개 메소드

Test adding policy to role.
public testAddPolicy ( )

testAssignRoleToUser() 공개 메소드

Test assigning role to user.

testAssignRoleToUserGroup() 공개 메소드

Test assigning role to user group.

testCreateRole() 공개 메소드

Test creating a role.
public testCreateRole ( )

testCreateRoleThrowsInvalidArgumentException() 공개 메소드

Test creating a role throwing InvalidArgumentException.

testCreateRoleWithPolicies() 공개 메소드

Test creating a role with policies.

testDeleteRole() 공개 메소드

Test deleting a role.
public testDeleteRole ( )

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.
public testIsPropertySet ( )

testLoadPoliciesByNonExistingUserId() 공개 메소드

Test loading policies by non existing user ID.

testLoadPoliciesByUserId() 공개 메소드

Test loading policies by user ID.

testLoadRole() 공개 메소드

Test loading role by id.
public testLoadRole ( )

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.
public testLoadRoles ( )

testMissingProperty() 공개 메소드

Test retrieving missing property.
public testMissingProperty ( )

testNewClass() 공개 메소드

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

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.
public testRemovePolicy ( )

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() 공개 메소드

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

testUnassignRoleFromUserThrowsInvalidArgumentException() 공개 메소드

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

testUnsetProperty() 공개 메소드

Test unsetting a property.
public testUnsetProperty ( )

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.
public testUpdatePolicy ( )

testUpdateRole() 공개 메소드

Test updating role.
public testUpdateRole ( )

testUpdateRoleThrowsInvalidArgumentException() 공개 메소드

Test updating role throwing InvalidArgumentException.