Skip to content

Commit

Permalink
Fixed HTTP mock for code 404 (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
SmetDenis committed Sep 14, 2023
1 parent 9715d68 commit af8af02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/AbstractDriverTest.php
Expand Up @@ -171,10 +171,10 @@ public function testStatus404(): void

public function testStatus404Body(): void
{
$result = $this->getClient()->request('https://run.mocky.io/v3/2c514476-819d-4208-a9fd-b9cc2155ecb4');
$result = $this->getClient()->request('https://run.mocky.io/v3/54bdf866-5da9-4e15-aeb4-4d51ee870dc4');

isSame(404, $result->code);
is("{\n \"error\": \"mock_not_found\"\n}", $result->getBody());
is('{"error": "mock_not_found"}', $result->getBody());
isSame('123', $result->getHeader('x-custom_header'));
}

Expand Down

0 comments on commit af8af02

Please sign in to comment.