@@ -79,8 +79,9 @@ public function testIsValidationCachedWithAdapter(): void
7979 } ' ;
8080
8181 // make the same call twice in a row. We'll then inspect the cache object to count calls
82- GraphQL::executeQuery ( $ schema , $ query , null , null , null , null , null , null , $ cache )->toArray ();
83- $ result = GraphQL::executeQuery ( $ schema , $ query , null , null , null , null , null , null , $ cache )->toArray ();
82+ $ resultA = GraphQL::executeQuery ( $ schema , $ query , null , null , null , null , null , null , $ cache )->toArray ();
83+ $ resultB = GraphQL::executeQuery ( $ schema , $ query , null , null , null , null , null , null , $ cache )->toArray ();
84+
8485
8586 // ✅ Assert that validation only happened once
8687 self ::assertEquals (2 , $ cache ->isValidatedCalls , 'Should check cache twice ' );
@@ -95,6 +96,7 @@ public function testIsValidationCachedWithAdapter(): void
9596 ],
9697 ];
9798
98- self ::assertEquals ($ expected , $ result );
99+ self ::assertEquals ($ expected , $ resultA );
100+ self ::assertEquals ($ expected , $ resultB );
99101 }
100102}
0 commit comments