22namespace Tests \Functional \DependencyInjection ;
33
44use Symfony \Component \DependencyInjection \Definition ;
5- use Symfony \Component \DependencyInjection \Exception \LogicException ;
65use Symfony \Component \DependencyInjection \Reference ;
76use Tests \Common \DependencyInjection \AbstractTestClass ;
87use Tests \Common \DependencyInjection \ConcreteDocProvider ;
9- use Tests \Common \DependencyInjection \ConcreteJsonRpcServerDispatcherAware ;
10- use Tests \Common \Mock \ConcreteParamsValidator ;
11- use Yoanm \JsonRpcServer \App \Dispatcher \JsonRpcServerDispatcherAwareTrait ;
128use Yoanm \SymfonyJsonRpcHttpServerDoc \DependencyInjection \JsonRpcHttpServerDocExtension ;
139
1410/**
@@ -50,7 +46,7 @@ public function testShouldReturnAnXsdValidationBasePath()
5046 $ this ->assertNotNull ((new JsonRpcHttpServerDocExtension ())->getXsdValidationBasePath ());
5147 }
5248
53- public function testShouldBindServerDispatcherToDispatcherAwareService ()
49+ public function testShouldBindDocProviderToNormalizedDocFinder ()
5450 {
5551 $ docProviderServiceId = 'my-doc-provider ' ;
5652 $ docProviderServiceDefinition = new Definition (ConcreteDocProvider::class);
@@ -62,7 +58,7 @@ public function testShouldBindServerDispatcherToDispatcherAwareService()
6258
6359 // Assert custom resolver is an alias of the stub
6460 $ this ->assertContainerBuilderHasServiceDefinitionWithMethodCall (
65- self ::EXPECTED_CHAIN_PROVIDER_SERVICE_ID ,
61+ self ::EXPECTED_NORMALIZED_DOC_FINDER_SERVICE_ID ,
6662 'addProvider ' ,
6763 [new Reference ($ docProviderServiceId )],
6864 0
0 commit comments