removing usage of a stepdefination inside another stepdefination in OcisConfigContext.php (#9021)

This commit is contained in:
nirajacharya2
2024-05-02 14:40:41 +05:45
committed by GitHub
parent 70e2c75831
commit 8ab24595b1

View File

@@ -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"
);
}
/**