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