1 | <?php |
||
20 | class ConfigurationTest extends AbstractExtensionConfigurationTestCase |
||
21 | { |
||
22 | /** |
||
23 | * @test |
||
24 | */ |
||
25 | public function testIt_converts_extension_elements_to_extensions() |
||
26 | { |
||
27 | $expectedConfiguration = [ |
||
28 | 'apiwise' => [ |
||
29 | 'key' => 'secret-apiwise-key', |
||
30 | ] |
||
31 | ]; |
||
32 | |||
33 | $sources = [__DIR__ . '/Fixtures/config.yml']; |
||
34 | |||
35 | $this->assertProcessedConfigurationEquals($expectedConfiguration, $sources); |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | protected function getContainerExtension() |
||
42 | { |
||
43 | return new UsoftPostcodeExtension(); |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | protected function getConfiguration() |
||
50 | { |
||
51 | return new Configuration(); |
||
52 | } |
||
53 | } |
||
54 |