@@ -79,8 +79,9 @@ public function testIsValidationCachedWithAdapter(): void
79
79
} ' ;
80
80
81
81
// 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
+
84
85
85
86
// ✅ Assert that validation only happened once
86
87
self ::assertEquals (2 , $ cache ->isValidatedCalls , 'Should check cache twice ' );
@@ -95,6 +96,7 @@ public function testIsValidationCachedWithAdapter(): void
95
96
],
96
97
];
97
98
98
- self ::assertEquals ($ expected , $ result );
99
+ self ::assertEquals ($ expected , $ resultA );
100
+ self ::assertEquals ($ expected , $ resultB );
99
101
}
100
102
}
0 commit comments