eZ\Bundle\EzPublishCoreBundle\Features\Context\ContentPreviewContext::gatherContexts PHP Method

gatherContexts() public method

public gatherContexts ( Behat\Behat\Hook\Scope\BeforeScenarioScope $scope )
$scope Behat\Behat\Hook\Scope\BeforeScenarioScope
    public function gatherContexts(BeforeScenarioScope $scope)
    {
        $environment = $scope->getEnvironment();
        $this->contentContext = $environment->getContext('eZ\\Bundle\\EzPublishCoreBundle\\Features\\Context\\ContentContext');
    }