getCompilerPassConfig()->setOptimizationPasses([]); $container->getCompilerPassConfig()->setRemovingPasses([]); $extension = new RetailCrmServiceExtension(); $extension->load( [ [ 'request_schema' => [ 'callback' => [], 'client' => [] ] ] ], $container ); $container->compile(); $this->container = $container; } public function testLoad(): void { static::assertTrue($this->container->hasParameter('retail_crm_service.request_schema.callback.supports')); static::assertTrue($this->container->hasParameter('retail_crm_service.request_schema.callback.serializer')); static::assertTrue($this->container->hasParameter('retail_crm_service.request_schema.client.supports')); static::assertTrue($this->container->hasParameter('retail_crm_service.request_schema.client.serializer')); static::assertTrue($this->container->hasDefinition(CallbackValueResolver::class)); static::assertTrue($this->container->hasDefinition(ClientValueResolver::class)); static::assertTrue($this->container->hasDefinition(ErrorJsonResponseFactory::class)); static::assertTrue($this->container->hasDefinition(CallbackClientAuthenticator::class)); static::assertTrue($this->container->hasDefinition(FrontApiClientAuthenticator::class)); } }