Skip to content

Commit

Permalink
fix: Improve schema testing a bit by providing a readable message wit…
Browse files Browse the repository at this point in the history
…h a reference to the failed schema
  • Loading branch information
nissen-chris committed Aug 2, 2023
1 parent 281e3fc commit 38b1b89
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ protected function runAndTestQuery(string $schema): void {

$expectedData = $this->jsonDecode($this->getExpectedResponseFromFile($schema))['data'];

$this->assertEqualsCanonicalizing($expectedData, $responseData);
$this->assertEqualsCanonicalizing(
$expectedData,
$responseData,
'The expected schema for "' . $schema . '" did not match the result.'
);
}

/**
Expand Down

0 comments on commit 38b1b89

Please sign in to comment.