| @@ 62-73 (lines=12) @@ | ||
| 59 | * @param $config |
|
| 60 | * @param $expected |
|
| 61 | */ |
|
| 62 | public function testConfiguration($config, $expected) |
|
| 63 | { |
|
| 64 | $builder = new ContainerBuilder(); |
|
| 65 | ||
| 66 | $ext = new OrbitaleCmsExtensionStub(true); |
|
| 67 | ||
| 68 | $ext->load($config, $builder); |
|
| 69 | ||
| 70 | foreach ($expected['orbitale_cms'] as $key => $value) { |
|
| 71 | static::assertSame($value, $builder->getParameter('orbitale_cms.' . $key)); |
|
| 72 | } |
|
| 73 | } |
|
| 74 | ||
| 75 | /** |
|
| 76 | * @dataProvider provideConfiguration |
|
| @@ 81-92 (lines=12) @@ | ||
| 78 | * @param $config |
|
| 79 | * @param $expected |
|
| 80 | */ |
|
| 81 | public function testConfigurationSymfony2($config, $expected) |
|
| 82 | { |
|
| 83 | $builder = new ContainerBuilder(); |
|
| 84 | ||
| 85 | $ext = new OrbitaleCmsExtensionStub(false); |
|
| 86 | ||
| 87 | $ext->load($config, $builder); |
|
| 88 | ||
| 89 | foreach ($expected['orbitale_cms'] as $key => $value) { |
|
| 90 | static::assertSame($value, $builder->getParameter('orbitale_cms.' . $key)); |
|
| 91 | } |
|
| 92 | } |
|
| 93 | ||
| 94 | public function provideConfiguration() |
|
| 95 | { |
|