Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function testLoad() |
||
18 | { |
||
19 | $config = [ |
||
20 | 'host' => 'example.com', |
||
21 | 'dir' => 'web-dir', |
||
22 | ]; |
||
23 | |||
24 | $this->load($config); |
||
25 | |||
26 | $this->assertContainerBuilderHasParameter('timegryd_opcache_reset.host', 'example.com'); |
||
27 | $this->assertContainerBuilderHasParameter('timegryd_opcache_reset.dir', 'web-dir'); |
||
28 | |||
29 | $this->assertContainerBuilderHasService('timegryd_opcache_reset.guzzle', 'GuzzleHttp\Client'); |
||
30 | $this->assertContainerBuilderHasService('timegryd_opcache_reset.helper', 'Timegryd\OpcacheResetBundle\Helper\OpcacheResetCommandHelper'); |
||
31 | $this->assertContainerBuilderHasService('timegryd_opcache_reset.command', 'Timegryd\OpcacheResetBundle\Command\OpcacheResetCommand'); |
||
32 | } |
||
33 | } |
||
34 |