Skip to content

Commit

Permalink
Merge pull request #20 from justlevine/patch-1
Browse files Browse the repository at this point in the history
fix: correctly fail when data doesnt match
  • Loading branch information
jasonbahl authored May 24, 2022
2 parents 6d213ed + 4287712 commit 3cf66ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TestCase/WPGraphQLTestCommon.php
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ public static function assertQuerySuccessful( array $response, array $expected,
foreach( $expected as $expected_data ) {
$data_passing = static::_assertExpectedDataFound( $response, $expected_data, '', $message );
if ( ! $data_passing ) {
break;
static::fail( $message );
}
}
}
Expand Down

0 comments on commit 3cf66ee

Please sign in to comment.