Skip to content

Commit

Permalink
Merge pull request #46 from LibreSign/bugfix/rewind-body
Browse files Browse the repository at this point in the history
Rewind body of response before get the body
  • Loading branch information
vitormattos authored Dec 26, 2023
2 parents 30a99d0 + a0ff159 commit 601f02b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/NextcloudApiContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 601f02b

Please sign in to comment.