fix tests where public try to download file

This commit is contained in:
Viktor Scharf
2024-06-07 15:54:17 +02:00
parent 3d04bb0fd7
commit c807d48f9a
3 changed files with 2 additions and 14 deletions
@@ -1207,11 +1207,7 @@ class PublicWebDavContext implements Context {
$responseContent = $response->getBody()->getContents();
\libxml_use_internal_errors(true);
Assert::assertNotFalse(
\simplexml_load_string($responseContent),
"response body is not valid XML, maybe download did work\n" .
"response body: \n$responseContent\n"
);
Assert::assertEmpty($responseContent, "response body is not empty, maybe download did work");
$this->featureContext->theHTTPStatusCodeShouldBe($expectedHttpCode, "", $response);
}