@@ -233,9 +233,7 @@ private function getEntrypointAction(array $variables = ['graphqlVariable']): En
233233
234234 $ executionResultProphecy = $ this ->prophesize (ExecutionResult::class);
235235 $ executionResultProphecy ->toArray (false )->willReturn (['GraphQL ' ]);
236- $ executionResultProphecy ->setErrorFormatter (Argument::type ('callable ' ))->willReturn ($ executionResultProphecy );
237236 $ executionResultProphecy ->setErrorFormatter ($ exceptionFormatterCallback )->willReturn ($ executionResultProphecy );
238- $ executionResultProphecy ->toArray (3 )->willReturn (['GraphQL ' ]);
239237 $ executorProphecy = $ this ->prophesize (ExecutorInterface::class);
240238 $ executorProphecy ->executeQuery (Argument::is ($ schema ->reveal ()), 'graphqlQuery ' , null , null , $ variables , 'graphqlOperationName ' )->willReturn ($ executionResultProphecy ->reveal ());
241239
@@ -245,8 +243,6 @@ private function getEntrypointAction(array $variables = ['graphqlVariable']): En
245243 $ graphiQlAction = new GraphiQlAction ($ twigProphecy ->reveal (), $ routerProphecy ->reveal (), true );
246244 $ graphQlPlaygroundAction = new GraphQlPlaygroundAction ($ twigProphecy ->reveal (), $ routerProphecy ->reveal (), true );
247245
248- return new EntrypointAction ($ schemaBuilderProphecy ->reveal (), $ executorProphecy ->reveal (), $ graphiQlAction , $ graphQlPlaygroundAction , false , true , true , 'graphiql ' );
249- return new EntrypointAction ($ schemaBuilderProphecy ->reveal (), $ executorProphecy ->reveal (), $ graphiQlAction , $ graphQlPlaygroundAction , $ exceptionFormatterFactoryProphecy ->reveal (), true , true , true , 'graphiql ' );
250- return new EntrypointAction ($ schemaBuilderProphecy ->reveal (), $ executorProphecy ->reveal (), $ graphiQlAction , $ graphQlPlaygroundAction , $ exceptionFormatterCallback , true , true , true , 'graphiql ' );
246+ return new EntrypointAction ($ schemaBuilderProphecy ->reveal (), $ executorProphecy ->reveal (), $ graphiQlAction , $ graphQlPlaygroundAction , $ exceptionFormatterCallback , false , true , true , 'graphiql ' );
251247 }
252248}
0 commit comments