Skip to content

Commit 68edb3f

Browse files
committed
Removing redundant test.
1 parent d5d0471 commit 68edb3f

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

tests/src/Kernel/ResultCacheTest.php

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -266,38 +266,4 @@ public function testPersistedQuery() {
266266
$processB->shouldHaveBeenCalledTimes(2);
267267
}
268268

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-
303269
}

0 commit comments

Comments
 (0)