diff --git a/src/NextcloudApiContext.php b/src/NextcloudApiContext.php index 8796583..311ff50 100644 --- a/src/NextcloudApiContext.php +++ b/src/NextcloudApiContext.php @@ -268,6 +268,7 @@ public function theResponseShouldBeAJsonArrayWithTheFollowingMandatoryValues(Tab * @When the response should contain the initial state :name with the following values: */ public function theResponseShouldContainTheInitialStateWithTheFollowingValues(string $name, PyStringNode $expected): void { + $this->response->getBody()->seek(0); $html = $this->response->getBody()->getContents(); $dom = new DOMDocument(); // https://www.php.net/manual/en/domdocument.loadhtml.php#95463