@@ -19,7 +19,7 @@ class JsonRpcHttpServerExtensionTest extends AbstractTestClass
19
19
/**
20
20
* {@inheritdoc}
21
21
*/
22
- protected function getContainerExtensions ()
22
+ protected function getContainerExtensions (): array
23
23
{
24
24
return [
25
25
new JsonRpcHttpServerExtension ()
@@ -29,15 +29,15 @@ protected function getContainerExtensions()
29
29
30
30
public function testShouldBeLoadable ()
31
31
{
32
- $ this ->load ();
32
+ $ this ->loadContainer ();
33
33
34
34
$ this ->assertEndpointIsUsable ();
35
35
}
36
36
37
37
public function testShouldManageCustomEndpointPathFromConfiguration ()
38
38
{
39
39
$ myCustomEndpoint = 'my-custom-endpoint ' ;
40
- $ this ->load (['endpoint ' => $ myCustomEndpoint ]);
40
+ $ this ->loadContainer (['endpoint ' => $ myCustomEndpoint ]);
41
41
42
42
// Assert custom resolver is an alias of the stub
43
43
$ this ->assertContainerBuilderHasParameter (self ::EXPECTED_HTTP_ENDPOINT_PATH_CONTAINER_PARAM , $ myCustomEndpoint );
@@ -57,7 +57,7 @@ public function testShouldBindServerDispatcherToDispatcherAwareService()
57
57
58
58
$ this ->setDefinition ('my-dispatcher-aware-service ' , $ dispatcherAwareServiceDefinition );
59
59
60
- $ this ->load ();
60
+ $ this ->loadContainer ();
61
61
62
62
// Assert custom resolver is an alias of the stub
63
63
$ this ->assertContainerBuilderHasServiceDefinitionWithMethodCall (
@@ -85,7 +85,7 @@ public function testShouldThrowAnExceptionIfDispatcherAwareServiceDoesNotUseRigh
85
85
.'" ' .JsonRpcServerDispatcherAwareTrait::class.'" '
86
86
);
87
87
88
- $ this ->load ();
88
+ $ this ->loadContainer ();
89
89
}
90
90
91
91
public function testShouldInjectParamsValidatorAliasIfDefined ()
@@ -96,7 +96,7 @@ public function testShouldInjectParamsValidatorAliasIfDefined()
96
96
$ this ->setDefinition ($ myValidatorServiceId , $ paramsValidator );
97
97
$ this ->container ->setAlias (self ::EXPECTED_PARAMS_VALIDATOR_ALIAS , $ myValidatorServiceId );
98
98
99
- $ this ->load ();
99
+ $ this ->loadContainer ();
100
100
101
101
$ this ->assertContainerBuilderHasServiceDefinitionWithMethodCall (
102
102
self ::EXPECTED_REQUEST_HANDLER_SERVICE_ID ,
@@ -109,7 +109,7 @@ public function testShouldInjectParamsValidatorAliasIfDefined()
109
109
110
110
public function testShouldNotInjectParamsValidatorAliasIfNotDefined ()
111
111
{
112
- $ this ->load ();
112
+ $ this ->loadContainer ();
113
113
114
114
$ handlerDefinition = $ this ->container ->getDefinition (self ::EXPECTED_REQUEST_HANDLER_SERVICE_ID );
115
115
foreach ($ handlerDefinition ->getMethodCalls () as $ methodCall ) {
@@ -142,7 +142,7 @@ public function testShouldBindJsonRpcMethodsToMethodAwareServices()
142
142
$ methodAwareDefinition ->addTag (JsonRpcHttpServerExtension::JSONRPC_METHOD_AWARE_TAG );
143
143
$ this ->setDefinition ($ methodAwareServiceServiceId , $ methodAwareDefinition );
144
144
145
- $ this ->load ();
145
+ $ this ->loadContainer ();
146
146
147
147
// Assert that method mapping have been correctly injected
148
148
$ this ->assertContainerBuilderHasServiceDefinitionWithMethodCall (
@@ -183,6 +183,6 @@ public function testShouldThowAnExceptionIfMethodAwareServiceDoesNotImplementRig
183
183
JsonRpcMethodAwareInterface::class
184
184
));
185
185
186
- $ this ->load ();
186
+ $ this ->loadContainer ();
187
187
}
188
188
}
0 commit comments