PHP Trait EzSystems\PlatformBehatBundle\Context\RepositoryContext

Everything repository related should go here. To be used by all the other behat contexts that need the repository. Any Context tha uses this trait will automatically login the admin user, so any operation that needs admin permissions can be executed.
Exibir arquivo Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
getRepository ( ) : eZ\Publish\API\Repository\Repository
loginAdmin ( $event )

Protected Methods

Method Description
setRepository ( eZ\Publish\API\Repository\Repository $repository )

Method Details

getRepository() public method

public getRepository ( ) : eZ\Publish\API\Repository\Repository
return eZ\Publish\API\Repository\Repository $repository

loginAdmin() public method

public loginAdmin ( $event )

setRepository() protected method

protected setRepository ( eZ\Publish\API\Repository\Repository $repository )
$repository eZ\Publish\API\Repository\Repository \eZ\Publish\API\Repository\Repository $repository