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

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

Test loading role by identifier.
    public function testLoadRoleByIdentifier()
    {
        $roleService = $this->repository->getRoleService();
        $role = $roleService->loadRoleByIdentifier('Anonymous');
        self::assertInstanceOf('\\eZ\\Publish\\API\\Repository\\Values\\User\\Role', $role);
        $this->assertPropertiesCorrect(array('id' => 1, 'identifier' => 'Anonymous'), $role);
    }