Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function testInitBundle() |
||
17 | { |
||
18 | // Create a new Kernel |
||
19 | $kernel = $this->createKernel(); |
||
20 | |||
21 | // Add some configuration |
||
22 | $kernel->addConfigFile(__DIR__.'/Resources/services.yml'); |
||
23 | |||
24 | // Boot the kernel. |
||
25 | $this->bootKernel(); |
||
26 | |||
27 | // Get the container |
||
28 | $container = $this->getContainer(); |
||
29 | |||
30 | // Test if you services exists |
||
31 | $this->assertTrue($container->has('test.ob_highcharts.twig.highcharts_extension')); |
||
32 | $service = $container->get('test.ob_highcharts.twig.highcharts_extension'); |
||
33 | $this->assertInstanceOf(HighchartsExtension::class, $service); |
||
34 | } |
||
35 | |||
36 | } |