| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function testGenerateRoutes() |
||
| 19 | { |
||
| 20 | $environment = 'symfony' . Kernel::MAJOR_VERSION; |
||
| 21 | $client = static::createClient(array('environment' => $environment)); |
||
| 22 | |||
| 23 | $container = $client->getKernel()->getContainer(); |
||
| 24 | |||
| 25 | $pathHelper = $container->get('path_helper'); |
||
| 26 | |||
| 27 | // test route is defined in Tests/app/routing.yml |
||
| 28 | $routes = $pathHelper->generateRoutes(['test_route' => []]); |
||
| 29 | |||
| 30 | $this->assertEquals(['api.test_route = "/monitor";'], $routes); |
||
| 31 | } |
||
| 32 | } |
||
| 33 |