@@ -165,6 +165,9 @@ |
||
| 165 | 165 | ); |
| 166 | 166 | } |
| 167 | 167 | |
| 168 | + /** |
|
| 169 | + * @param string $uri |
|
| 170 | + */ |
|
| 168 | 171 | private function createJsonRequest($uri, $content) |
| 169 | 172 | { |
| 170 | 173 | return Request::create($uri, 'POST', [], [], [], [], json_encode($content)); |
@@ -23,9 +23,11 @@ |
||
| 23 | 23 | { |
| 24 | 24 | $client = self::createClient(); |
| 25 | 25 | |
| 26 | - foreach (['test', 'test_private'] as $endpoint) /** @var MethodCollection $collection */ { |
|
| 26 | + foreach (['test', 'test_private'] as $endpoint) { |
|
| 27 | + /** @var MethodCollection $collection */ { |
|
| 27 | 28 | /** @var Router $router */ |
| 28 | 29 | $router = $client->getContainer()->get('rpc_server.endpoint_router.' . $endpoint); |
| 30 | + } |
|
| 29 | 31 | self::assertNotNull($router); |
| 30 | 32 | $collection = $router->getMethodCollection(); |
| 31 | 33 | self::assertNotNull($router); |