PHP Class eZ\Bundle\EzPublishCoreBundle\Features\Context\RoleContext

Inheritance: implements Behat\Behat\Context\Context, use trait EzSystems\PlatformBehatBundle\Context\RepositoryContext
Mostrar archivo Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$roleService eZ\Publish\API\Repository\roleService

Public Methods

Method Description
__construct ( eZ\Publish\API\Repository\Repository $repository, eZ\Publish\API\Repository\RoleService $roleService )
ensureRoleExists ( string $name ) : eZ\Publish\API\Repository\Values\User\Role Make sure a Role with name $name exists in parent group.
getRole ( string $identifier ) : eZ\Publish\API\Repository\Values\User\Role Fetches the role with identifier.
iDontSeeRole ( $name )
iHaveRole ( $name ) : eZ\Publish\API\Repository\Values\User\Role
iSeeRole ( $name )
noAssginedPolicies ( $name )
noAssigneGroups ( $name )

Method Details

__construct() public method

public __construct ( eZ\Publish\API\Repository\Repository $repository, eZ\Publish\API\Repository\RoleService $roleService )
$repository eZ\Publish\API\Repository\Repository
$roleService eZ\Publish\API\Repository\RoleService

ensureRoleExists() public method

Make sure a Role with name $name exists in parent group.
public ensureRoleExists ( string $name ) : eZ\Publish\API\Repository\Values\User\Role
$name string Role identifier
return eZ\Publish\API\Repository\Values\User\Role

getRole() public method

Fetches the role with identifier.
public getRole ( string $identifier ) : eZ\Publish\API\Repository\Values\User\Role
$identifier string Role identifier
return eZ\Publish\API\Repository\Values\User\Role

iDontSeeRole() public method

public iDontSeeRole ( $name )

iHaveRole() public method

public iHaveRole ( $name ) : eZ\Publish\API\Repository\Values\User\Role
return eZ\Publish\API\Repository\Values\User\Role

iSeeRole() public method

public iSeeRole ( $name )

noAssginedPolicies() public method

public noAssginedPolicies ( $name )

noAssigneGroups() public method

public noAssigneGroups ( $name )

Property Details

$roleService protected_oe property

protected roleService,eZ\Publish\API\Repository $roleService
return eZ\Publish\API\Repository\roleService