test: rename PROPFIND response check steps

test: fix tests
This commit is contained in:
Saw-jan
2024-10-01 18:07:47 +05:45
parent 08922584bc
commit 732f2b241e
15 changed files with 124 additions and 108 deletions
@@ -665,4 +665,22 @@ class HttpRequestHelper {
public static function getJsonDecodedResponseBodyContent(ResponseInterface $response): mixed {
return json_decode($response->getBody()->getContents(), null, 512, JSON_THROW_ON_ERROR);
}
/**
* @return bool
*/
public static function sendScenarioLineReferencesInXRequestId(): bool {
return (\getenv("SEND_SCENARIO_LINE_REFERENCES") === "true");
}
/**
* @return bool
*/
public static function getXRequestIdRegex(): string {
if (self::sendScenarioLineReferencesInXRequestId()) {
return '/^[a-zA-Z]+\/[a-zA-Z]+\.feature:\d+(-\d+)?$/';
}
$host = gethostname();
return "/^$host\/.*$/";
}
}