Class

eZ\Bundle\EzPublishCoreBundle\Features\Context\RoleContext

class RoleContext implements Context

Sentences for Roles.

Methods

__construct(Repository $repository, RoleService $roleService)

Role ensureRoleExists(string $name)

Make sure a Role with name $name exists in parent group.

Role getRole(string $identifier)

Fetches the role with identifier.

Role iHaveRole($name)

iSeeRole($name)

noAssginedPolicies($name)

noAssigneGroups($name)

iDontSeeRole($name)

Details

at line 31
public __construct(Repository $repository, RoleService $roleService)

Parameters

Repository $repository
RoleService $roleService

at line 44
public Role ensureRoleExists(string $name)

Make sure a Role with name $name exists in parent group.

Parameters

string $name Role identifier

Return Value

Role

at line 65
public Role getRole(string $identifier)

Fetches the role with identifier.

Parameters

string $identifier Role identifier

Return Value

Role

at line 84
public Role iHaveRole($name)

Parameters

$name

Return Value

Role

at line 94
public iSeeRole($name)

Parameters

$name

at line 106
public noAssginedPolicies($name)

Parameters

$name

at line 120
public noAssigneGroups($name)

Parameters

$name

at line 136
public iDontSeeRole($name)

Parameters

$name