PHP Class eZ\Bundle\EzPublishRestBundle\Tests\Functional\RoleTest

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

Méthodes publiques

Méthode Description
provideLimitations ( )
testAddPolicy ( $roleHref ) : string
testAddPolicyByRoleDraft ( $roleDraftHref ) : string
testAssignRoleToUser ( $roleHref ) : string
testAssignRoleToUserGroup ( $roleHref ) : string
testAssignRoleToUserWithLimitation ( array $limitation ) : string
testCreateRole ( ) : string
testCreateRoleDraft ( $roleHref ) : string
testCreateRoleWithDraft ( ) : string
testDeletePolicies ( $roleHref )
testDeletePolicy ( $policyHref )
testDeleteRole ( $roleHref )
testDeleteRoleDraft ( $roleDraftHref )
testListPoliciesForUser ( )
testListRoles ( )
testLoadPolicies ( $roleHref )
testLoadPolicy ( $policyHref )
testLoadRole ( $roleHref )
testLoadRoleAssignmentForUser ( $roleAssignmentHref )
testLoadRoleAssignmentForUserGroup ( $roleAssignmentHref )
testLoadRoleAssignmentsForUser ( )
testLoadRoleAssignmentsForUserGroup ( )
testLoadRoleDraft ( $roleDraftHref )
testPublishRoleDraft ( $roleDraftHref )
testRemovePolicyByRoleDraft ( $policyHref )
testUnassignRoleFromUser ( $roleAssignmentHref )
testUnassignRoleFromUserGroup ( $roleAssignmentHref )
testUpdatePolicy ( $policyHref )
testUpdatePolicyByRoleDraft ( $policyHref )
testUpdateRole ( $roleHref )
testUpdateRoleDraft ( $roleDraftHref )

Private Methods

Méthode Description
createAndPublishRole ( string $identifier ) : string Creates and publishes a role with $identifier.
roleDraftHrefToRoleHref ( string $roleDraftHref ) : string Helper method for changing a roledraft href to a role href.

Method Details

provideLimitations() public méthode

public provideLimitations ( )

testAddPolicy() public méthode

public testAddPolicy ( $roleHref ) : string
Résultat string The created policy href

testAddPolicyByRoleDraft() public méthode

public testAddPolicyByRoleDraft ( $roleDraftHref ) : string
Résultat string The created policy href

testAssignRoleToUser() public méthode

public testAssignRoleToUser ( $roleHref ) : string
Résultat string assigned role href

testAssignRoleToUserGroup() public méthode

public testAssignRoleToUserGroup ( $roleHref ) : string
Résultat string role assignment href

testAssignRoleToUserWithLimitation() public méthode

public testAssignRoleToUserWithLimitation ( array $limitation ) : string
$limitation array
Résultat string assigned role href

testCreateRole() public méthode

public testCreateRole ( ) : string
Résultat string The created role href

testCreateRoleDraft() public méthode

public testCreateRoleDraft ( $roleHref ) : string
Résultat string The created role draft href

testCreateRoleWithDraft() public méthode

public testCreateRoleWithDraft ( ) : string
Résultat string The created role draft href

testDeletePolicies() public méthode

public testDeletePolicies ( $roleHref )

testDeletePolicy() public méthode

public testDeletePolicy ( $policyHref )

testDeleteRole() public méthode

public testDeleteRole ( $roleHref )

testDeleteRoleDraft() public méthode

public testDeleteRoleDraft ( $roleDraftHref )

testListPoliciesForUser() public méthode

testListRoles() public méthode

public testListRoles ( )

testLoadPolicies() public méthode

public testLoadPolicies ( $roleHref )

testLoadPolicy() public méthode

public testLoadPolicy ( $policyHref )

testLoadRole() public méthode

public testLoadRole ( $roleHref )

testLoadRoleAssignmentForUser() public méthode

public testLoadRoleAssignmentForUser ( $roleAssignmentHref )

testLoadRoleAssignmentForUserGroup() public méthode

public testLoadRoleAssignmentForUserGroup ( $roleAssignmentHref )

testLoadRoleAssignmentsForUser() public méthode

testLoadRoleAssignmentsForUserGroup() public méthode

testLoadRoleDraft() public méthode

public testLoadRoleDraft ( $roleDraftHref )

testPublishRoleDraft() public méthode

public testPublishRoleDraft ( $roleDraftHref )

testRemovePolicyByRoleDraft() public méthode

public testRemovePolicyByRoleDraft ( $policyHref )

testUnassignRoleFromUser() public méthode

public testUnassignRoleFromUser ( $roleAssignmentHref )

testUnassignRoleFromUserGroup() public méthode

public testUnassignRoleFromUserGroup ( $roleAssignmentHref )

testUpdatePolicy() public méthode

public testUpdatePolicy ( $policyHref )

testUpdatePolicyByRoleDraft() public méthode

public testUpdatePolicyByRoleDraft ( $policyHref )

testUpdateRole() public méthode

public testUpdateRole ( $roleHref )

testUpdateRoleDraft() public méthode

public testUpdateRoleDraft ( $roleDraftHref )