Merge pull request #10253 from owncloud/skip-initilizing-spacecontex-in-reva

[full-ci][tests-only] refactor test code to skip initializing spacecontex in reva
This commit is contained in:
nirajacharya2
2024-10-08 11:22:17 +05:45
committed by GitHub

View File

@@ -48,7 +48,9 @@ class GraphContext implements Context {
$environment = $scope->getEnvironment();
// Get all the contexts you need in this context from here
$this->featureContext = $environment->getContext('FeatureContext');
$this->spacesContext = $environment->getContext('SpacesContext');
if (!\TestHelpers\OcisHelper::isTestingOnReva()) {
$this->spacesContext = $environment->getContext('SpacesContext');
}
}
/**