Conditions | 2 |
Paths | 2 |
Total Lines | 23 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public function testConfigGeneratesAsExpected() |
||
26 | { |
||
27 | $array = [ |
||
28 | 'soundcloud_api_key' => 'thisismykey', |
||
29 | 'remote_video' => [ |
||
30 | 'vimeo' => false, |
||
31 | 'youtube' => true, |
||
32 | 'dailymotion' => false, |
||
33 | ], |
||
34 | 'enable_pdf_preview' => true, |
||
35 | 'blacklisted_extensions' => [], |
||
36 | 'web_root' => '%kernel.project_dir%/web', |
||
37 | ]; |
||
38 | |||
39 | if (Kernel::VERSION_ID >= 40000) { |
||
40 | $array['web_root'] = '%kernel.project_dir%/public'; |
||
41 | } |
||
42 | |||
43 | $expectedConfig = $array; |
||
44 | $expectedConfig['aviary_api_key'] = null; |
||
45 | |||
46 | $this->assertProcessedConfigurationEquals([$array], $expectedConfig); |
||
47 | } |
||
48 | |||
58 |