@@ -266,38 +266,4 @@ public function testPersistedQuery() {
266
266
$ processB ->shouldHaveBeenCalledTimes (2 );
267
267
}
268
268
269
- /**
270
- * Test batched persisted queries.
271
- */
272
- public function testBatchedPersistedQueries () {
273
- $ queryMap = $ this ->prophesize (QueryMapProviderInterface::class);
274
- $ this ->container ->set ('graphql.query_map_provider ' , $ queryMap ->reveal ());
275
-
276
- $ queryMap ->getQuery ('a ' , 'query ' )->willReturn ('A ' );
277
- $ queryMap ->getQuery ('b ' , 'query ' )->willReturn ('B ' );
278
-
279
- $ processor = $ this ->prophesize (QueryProcessor::class);
280
- $ this ->container ->set ('graphql.query_processor ' , $ processor ->reveal ());
281
-
282
- /** @var \Prophecy\Prophecy\MethodProphecy $processA */
283
- $ processA = $ processor ->processQuery (Argument::any (), 'A ' , Argument::cetera ())
284
- ->willReturn (new QueryResult (NULL , new CacheableMetadata ()));
285
- /** @var \Prophecy\Prophecy\MethodProphecy $processB */
286
- $ processB = $ processor ->processQuery (Argument::any (), 'B ' , Argument::cetera ())
287
- ->willReturn (new QueryResult (NULL , new CacheableMetadata ()));
288
-
289
- $ this ->batchedQueries ([
290
- ['id ' => 'query ' , 'version ' => 'a ' ] ,
291
- ]);
292
- $ processA ->shouldHaveBeenCalledTimes (1 );
293
- $ processB ->shouldNotHaveBeenCalled ();
294
-
295
- $ this ->batchedQueries ([
296
- ['id ' => 'query ' , 'version ' => 'b ' ] ,
297
- ]);
298
- $ processA ->shouldHaveBeenCalledTimes (1 );
299
- $ processB ->shouldHaveBeenCalledTimes (1 );
300
-
301
- }
302
-
303
269
}
0 commit comments