eZ\Publish\Core\Repository\Tests\Service\Integration\RoleBase::testGetRoleAssignments PHP Method

testGetRoleAssignments() public method

Test fetching all role assignments for specified role.
    public function testGetRoleAssignments()
    {
        $roleService = $this->repository->getRoleService();
        $role = $roleService->loadRole(2);
        $roleAssignments = $roleService->getRoleAssignments($role);
        self::assertInternalType('array', $roleAssignments);
        self::assertNotEmpty($roleAssignments);
        foreach ($roleAssignments as $assignment) {
            self::assertInstanceOf('\\eZ\\Publish\\API\\Repository\\Values\\User\\RoleAssignment', $assignment);
        }
    }