mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-23 20:49:13 -05:00
test: rename PROPFIND response check steps
test: fix tests
This commit is contained in:
@@ -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\/.*$/";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user