PHP Class eZ\Publish\Core\Repository\Tests\Service\Mock\RoleTest

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

Protected Properties

Свойство Type Description
$partlyMockedLimitationService eZ\Publish\Core\Repository\RoleService
$partlyMockedRoleService eZ\Publish\Core\Repository\RoleService

Méthodes publiques

Méthode Description
testAddPolicyThrowsLimitationValidationException ( ) Test for the addPolicy() method.
testAssignRoleGroupToUserThrowsBadStateException ( ) Test for the assignRoleToUserGroup() method.
testAssignRoleToUser ( ) Test for the assignRoleToUser() method.
testAssignRoleToUserGroup ( ) Test for the assignRoleToUserGroup() method.
testAssignRoleToUserGroupThrowsLimitationValidationException ( ) Test for the assignRoleToUserGroup() method.
testAssignRoleToUserGroupThrowsUnauthorizedException ( ) Test for the assignRoleToUserGroup() method.
testAssignRoleToUserGroupWithNullLimitation ( ) Test for the assignRoleToUserGroup() method.
testAssignRoleToUserGroupWithRollback ( ) Test for the assignRoleToUserGroup() method.
testAssignRoleToUserThrowsBadStateException ( ) Test for the assignRoleToUser() method.
testAssignRoleToUserThrowsLimitationValidationException ( ) Test for the assignRoleToUser() method.
testAssignRoleToUserThrowsUnauthorizedException ( ) Test for the assignRoleToUser() method.
testAssignRoleToUserWithNullLimitation ( ) Test for the assignRoleToUser() method.
testAssignRoleToUserWithRollback ( ) Test for the assignRoleToUser() method.
testCreateRoleThrowsLimitationValidationException ( ) Test for the createRole() method.
testDeletePolicy ( ) Test for the deletePolicy() method.
testDeletePolicyThrowsUnauthorizedException ( ) Test for the deletePolicy() method.
testDeletePolicyWithRollback ( ) Test for the deletePolicy() method.
testRemovePolicy ( ) Test for the removePolicy() method.
testRemovePolicyThrowsInvalidArgumentException ( ) Test for the removePolicy() method.
testRemovePolicyThrowsUnauthorizedException ( ) Test for the removePolicy() method.
testRemovePolicyWithRollback ( ) Test for the removePolicy() method.
testUpdatePolicyThrowsLimitationValidationException ( ) Test for the updatePolicy() method.

Méthodes protégées

Méthode Description
getPartlyMockedLimitationService ( array $methods = null, array $settings = [] ) : LimitationService | PHPUnit_Framework_MockObject_MockObject Return mocked LimitationService.
getPartlyMockedRoleService ( array $methods = null, array $settings = [] ) : RoleService | PHPUnit_Framework_MockObject_MockObject Returns the role service to test with $methods mocked.

Method Details

getPartlyMockedLimitationService() protected méthode

Return mocked LimitationService.
protected getPartlyMockedLimitationService ( array $methods = null, array $settings = [] ) : LimitationService | PHPUnit_Framework_MockObject_MockObject
$methods array
$settings array
Résultat eZ\Publish\Core\Repository\Helper\LimitationService | PHPUnit_Framework_MockObject_MockObject

getPartlyMockedRoleService() protected méthode

Injected Repository comes from {@see \getRepositoryMock()} and persistence handler from {@see \getPersistenceMock()}
protected getPartlyMockedRoleService ( array $methods = null, array $settings = [] ) : RoleService | PHPUnit_Framework_MockObject_MockObject
$methods array
$settings array
Résultat eZ\Publish\Core\Repository\RoleService | PHPUnit_Framework_MockObject_MockObject

testAddPolicyThrowsLimitationValidationException() public méthode

Test for the addPolicy() method.

testAssignRoleGroupToUserThrowsBadStateException() public méthode

Test for the assignRoleToUserGroup() method.

testAssignRoleToUser() public méthode

Test for the assignRoleToUser() method.

testAssignRoleToUserGroup() public méthode

Test for the assignRoleToUserGroup() method.

testAssignRoleToUserGroupThrowsLimitationValidationException() public méthode

Test for the assignRoleToUserGroup() method.

testAssignRoleToUserGroupThrowsUnauthorizedException() public méthode

Test for the assignRoleToUserGroup() method.

testAssignRoleToUserGroupWithNullLimitation() public méthode

Test for the assignRoleToUserGroup() method.

testAssignRoleToUserGroupWithRollback() public méthode

Test for the assignRoleToUserGroup() method.

testAssignRoleToUserThrowsBadStateException() public méthode

Test for the assignRoleToUser() method.

testAssignRoleToUserThrowsLimitationValidationException() public méthode

Test for the assignRoleToUser() method.

testAssignRoleToUserThrowsUnauthorizedException() public méthode

Test for the assignRoleToUser() method.

testAssignRoleToUserWithNullLimitation() public méthode

Test for the assignRoleToUser() method.

testAssignRoleToUserWithRollback() public méthode

Test for the assignRoleToUser() method.

testCreateRoleThrowsLimitationValidationException() public méthode

Test for the createRole() method.

testDeletePolicy() public méthode

Test for the deletePolicy() method.
public testDeletePolicy ( )

testDeletePolicyThrowsUnauthorizedException() public méthode

Test for the deletePolicy() method.

testDeletePolicyWithRollback() public méthode

Test for the deletePolicy() method.

testRemovePolicy() public méthode

Test for the removePolicy() method.
public testRemovePolicy ( )

testRemovePolicyThrowsInvalidArgumentException() public méthode

Test for the removePolicy() method.

testRemovePolicyThrowsUnauthorizedException() public méthode

Test for the removePolicy() method.

testRemovePolicyWithRollback() public méthode

Test for the removePolicy() method.

testUpdatePolicyThrowsLimitationValidationException() public méthode

Test for the updatePolicy() method.

Property Details

$partlyMockedLimitationService protected_oe property

protected RoleService,eZ\Publish\Core\Repository $partlyMockedLimitationService
Résultat eZ\Publish\Core\Repository\RoleService

$partlyMockedRoleService protected_oe property

protected RoleService,eZ\Publish\Core\Repository $partlyMockedRoleService
Résultat eZ\Publish\Core\Repository\RoleService