Do not register space context for reva
This commit is contained in:
@@ -3222,20 +3222,23 @@ class FeatureContext extends BehatVariablesContext {
|
|||||||
$this->ocsContext = new OCSContext();
|
$this->ocsContext = new OCSContext();
|
||||||
$this->authContext = new AuthContext();
|
$this->authContext = new AuthContext();
|
||||||
$this->appConfigurationContext = new AppConfigurationContext();
|
$this->appConfigurationContext = new AppConfigurationContext();
|
||||||
$this->spacesContext = new SpacesContext();
|
|
||||||
$this->ocsContext->before($scope);
|
$this->ocsContext->before($scope);
|
||||||
$this->authContext->setUpScenario($scope);
|
$this->authContext->setUpScenario($scope);
|
||||||
$this->appConfigurationContext->setUpScenario($scope);
|
$this->appConfigurationContext->setUpScenario($scope);
|
||||||
$environment->registerContext($this->ocsContext);
|
$environment->registerContext($this->ocsContext);
|
||||||
$environment->registerContext($this->authContext);
|
$environment->registerContext($this->authContext);
|
||||||
$environment->registerContext($this->appConfigurationContext);
|
$environment->registerContext($this->appConfigurationContext);
|
||||||
$this->spacesContext->setUpScenario($scope);
|
|
||||||
$environment->registerContext($this->spacesContext);
|
|
||||||
$scenarioLine = $scope->getScenario()->getLine();
|
$scenarioLine = $scope->getScenario()->getLine();
|
||||||
$featureFile = $scope->getFeature()->getFile();
|
$featureFile = $scope->getFeature()->getFile();
|
||||||
$suiteName = $scope->getSuite()->getName();
|
$suiteName = $scope->getSuite()->getName();
|
||||||
$featureFileName = \basename($featureFile);
|
$featureFileName = \basename($featureFile);
|
||||||
|
|
||||||
|
if (!OcisHelper::isTestingOnReva()) {
|
||||||
|
$this->spacesContext = new SpacesContext();
|
||||||
|
$this->spacesContext->setUpScenario($scope);
|
||||||
|
$environment->registerContext($this->spacesContext);
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->sendScenarioLineReferencesInXRequestId()) {
|
if ($this->sendScenarioLineReferencesInXRequestId()) {
|
||||||
$this->scenarioString = $suiteName . '/' . $featureFileName . ':' . $scenarioLine;
|
$this->scenarioString = $suiteName . '/' . $featureFileName . ':' . $scenarioLine;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user