From 8ab24595b1fa6a2a968f11b5c314a96c9065ea93 Mon Sep 17 00:00:00 2001 From: nirajacharya2 <122071597+nirajacharya2@users.noreply.github.com> Date: Thu, 2 May 2024 14:40:41 +0545 Subject: [PATCH] removing usage of a stepdefination inside another stepdefination in OcisConfigContext.php (#9021) --- .../features/bootstrap/OcisConfigContext.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/acceptance/features/bootstrap/OcisConfigContext.php b/tests/acceptance/features/bootstrap/OcisConfigContext.php index 43b2f94b40..cbfb0289ea 100644 --- a/tests/acceptance/features/bootstrap/OcisConfigContext.php +++ b/tests/acceptance/features/bootstrap/OcisConfigContext.php @@ -86,7 +86,16 @@ class OcisConfigContext implements Context { */ public function theConfigHasBeenSetPathTo(string $configVariable, string $path): void { $path = \dirname(__FILE__) . "/../../../" . $path; - $this->theConfigHasBeenSetTo($configVariable, $path); + $response = OcisConfigHelper::reConfigureOcis( + [ + $configVariable => $path + ] + ); + Assert::assertEquals( + 200, + $response->getStatusCode(), + "Failed to set config $configVariable=$path" + ); } /**