PHP Класс eZ\Publish\Core\Repository\Tests\Service\Mock\RoleTest

Наследование: extends Base
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$partlyMockedLimitationService eZ\Publish\Core\Repository\RoleService
$partlyMockedRoleService eZ\Publish\Core\Repository\RoleService

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Описание методов

getPartlyMockedLimitationService() защищенный Метод

Return mocked LimitationService.
protected getPartlyMockedLimitationService ( array $methods = null, array $settings = [] ) : LimitationService | PHPUnit_Framework_MockObject_MockObject
$methods array
$settings array
Результат eZ\Publish\Core\Repository\Helper\LimitationService | PHPUnit_Framework_MockObject_MockObject

getPartlyMockedRoleService() защищенный Метод

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
Результат eZ\Publish\Core\Repository\RoleService | PHPUnit_Framework_MockObject_MockObject

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

testDeletePolicyThrowsUnauthorizedException() публичный Метод

Test for the deletePolicy() method.

testDeletePolicyWithRollback() публичный Метод

Test for the deletePolicy() method.

testRemovePolicy() публичный Метод

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

testRemovePolicyThrowsInvalidArgumentException() публичный Метод

Test for the removePolicy() method.

testRemovePolicyThrowsUnauthorizedException() публичный Метод

Test for the removePolicy() method.

testRemovePolicyWithRollback() публичный Метод

Test for the removePolicy() method.

testUpdatePolicyThrowsLimitationValidationException() публичный Метод

Test for the updatePolicy() method.

Описание свойств

$partlyMockedLimitationService защищенное свойство

protected RoleService,eZ\Publish\Core\Repository $partlyMockedLimitationService
Результат eZ\Publish\Core\Repository\RoleService

$partlyMockedRoleService защищенное свойство

protected RoleService,eZ\Publish\Core\Repository $partlyMockedRoleService
Результат eZ\Publish\Core\Repository\RoleService