From a5d7c292db34654720c2bbd7fe8f463f9f4a05c7 Mon Sep 17 00:00:00 2001 From: Nalem7 <61624650+nabim777@users.noreply.github.com> Date: Fri, 9 Feb 2024 18:47:37 +0545 Subject: [PATCH] skip spacecontext subsitutions for reva (#8422) --- .../features/bootstrap/FeatureContext.php | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/tests/acceptance/features/bootstrap/FeatureContext.php b/tests/acceptance/features/bootstrap/FeatureContext.php index 8ac2409b47..0293466e0d 100644 --- a/tests/acceptance/features/bootstrap/FeatureContext.php +++ b/tests/acceptance/features/bootstrap/FeatureContext.php @@ -2880,16 +2880,22 @@ class FeatureContext extends BehatVariablesContext { "function" => [$this, "getGroupIdByGroupName"], "parameter" => [$group] - ], - [ - "code" => "%shares_drive_id%", - "function" => [ - $this->spacesContext, - "getSpaceIdByName" - ], - "parameter" => [$user, "Shares"] ] ); + + if (!OcisHelper::isTestingOnReva()) { + array_push( + $substitutions, + [ + "code" => "%shares_drive_id%", + "function" => [ + $this->spacesContext, + "getSpaceIdByName" + ], + "parameter" => [$user, "Shares"] + ] + ); + } } if (!empty($additionalSubstitutions)) {