@@ -310,20 +310,23 @@ public function testEnableNelmioApiDoc()
310
310
$ this ->extension ->load (array_merge_recursive (self ::DEFAULT_CONFIG , ['api_platform ' => ['enable_nelmio_api_doc ' => true ]]), $ containerBuilder );
311
311
}
312
312
313
- public function testDisableGraphql ()
313
+ public function testDisableGraphQl ()
314
314
{
315
315
$ containerBuilderProphecy = $ this ->getBaseContainerBuilderProphecy ();
316
- $ containerBuilderProphecy ->setDefinition ('api_platform.action.graphql_entrypoint ' )->shouldNotBeCalled ();
317
- $ containerBuilderProphecy ->setDefinition ('api_platform.graphql.resolver.factory.collection ' )->shouldNotBeCalled ();
318
- $ containerBuilderProphecy ->setDefinition ('api_platform.graphql.resolver.factory.item_mutation ' )->shouldNotBeCalled ();
319
- $ containerBuilderProphecy ->setDefinition ('api_platform.graphql.resolver.item ' )->shouldNotBeCalled ();
320
- $ containerBuilderProphecy ->setDefinition ('api_platform.graphql.resolver.resource_field ' )->shouldNotBeCalled ();
321
- $ containerBuilderProphecy ->setDefinition ('api_platform.graphql.executor ' )->shouldNotBeCalled ();
322
- $ containerBuilderProphecy ->setDefinition ('api_platform.graphql.schema_builder ' )->shouldNotBeCalled ();
323
- $ containerBuilderProphecy ->setDefinition ('api_platform.graphql.normalizer.item ' )->shouldNotBeCalled ();
324
- $ containerBuilderProphecy ->setDefinition ('api_platform.graphql.normalizer.item.non_resource ' )->shouldNotBeCalled ();
316
+ $ containerBuilderProphecy ->setDefinition ('api_platform.graphql. action.entrypoint ' , Argument:: type (Definition::class) )->shouldNotBeCalled ();
317
+ $ containerBuilderProphecy ->setDefinition ('api_platform.graphql.resolver.factory.collection ' , Argument:: type (Definition::class) )->shouldNotBeCalled ();
318
+ $ containerBuilderProphecy ->setDefinition ('api_platform.graphql.resolver.factory.item_mutation ' , Argument:: type (Definition::class) )->shouldNotBeCalled ();
319
+ $ containerBuilderProphecy ->setDefinition ('api_platform.graphql.resolver.item ' , Argument:: type (Definition::class) )->shouldNotBeCalled ();
320
+ $ containerBuilderProphecy ->setDefinition ('api_platform.graphql.resolver.resource_field ' , Argument:: type (Definition::class) )->shouldNotBeCalled ();
321
+ $ containerBuilderProphecy ->setDefinition ('api_platform.graphql.executor ' , Argument:: type (Definition::class) )->shouldNotBeCalled ();
322
+ $ containerBuilderProphecy ->setDefinition ('api_platform.graphql.schema_builder ' , Argument:: type (Definition::class) )->shouldNotBeCalled ();
323
+ $ containerBuilderProphecy ->setDefinition ('api_platform.graphql.normalizer.item ' , Argument:: type (Definition::class) )->shouldNotBeCalled ();
324
+ $ containerBuilderProphecy ->setDefinition ('api_platform.graphql.normalizer.item.non_resource ' , Argument:: type (Definition::class) )->shouldNotBeCalled ();
325
325
$ containerBuilderProphecy ->setParameter ('api_platform.graphql.enabled ' , true )->shouldNotBeCalled ();
326
326
$ containerBuilderProphecy ->setParameter ('api_platform.graphql.enabled ' , false )->shouldBeCalled ();
327
+ $ containerBuilderProphecy ->setParameter ('api_platform.graphql.graphiql.enabled ' , true )->shouldNotBeCalled ();
328
+ $ containerBuilderProphecy ->setParameter ('api_platform.graphql.graphiql.enabled ' , false )->shouldNotBeCalled ();
329
+
327
330
$ containerBuilder = $ containerBuilderProphecy ->reveal ();
328
331
329
332
$ this ->extension ->load (array_merge_recursive (self ::DEFAULT_CONFIG , ['api_platform ' => ['graphql ' => ['enabled ' => false ]]]), $ containerBuilder );
0 commit comments