From 4287712d0330ce3fe54c7fb69500891917e34d6a Mon Sep 17 00:00:00 2001 From: Dovid Levine Date: Sat, 7 May 2022 00:53:19 +0300 Subject: [PATCH] fix: correctly fail when data doesnt match --- src/TestCase/WPGraphQLTestCommon.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TestCase/WPGraphQLTestCommon.php b/src/TestCase/WPGraphQLTestCommon.php index 139c74e..89f4f9f 100644 --- a/src/TestCase/WPGraphQLTestCommon.php +++ b/src/TestCase/WPGraphQLTestCommon.php @@ -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 ); } } }