Skip to content

Commit

Permalink
fix: correctly fail when data doesnt match
Browse files Browse the repository at this point in the history
  • Loading branch information
justlevine authored May 6, 2022
1 parent 42ed39d commit 4287712
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 4287712

Please sign in to comment.