eZ\Publish\Core\Repository\Tests\Service\Integration\RoleBase::testUpdateRoleThrowsInvalidArgumentException PHP Метод

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

Test updating role throwing InvalidArgumentException.
    public function testUpdateRoleThrowsInvalidArgumentException()
    {
        $roleService = $this->repository->getRoleService();
        $role = $roleService->loadRoleByIdentifier('Anonymous');
        $roleUpdateStruct = $roleService->newRoleUpdateStruct();
        $roleUpdateStruct->identifier = 'Administrator';
        $roleService->updateRole($role, $roleUpdateStruct);
    }