|
@@ 26-35 (lines=10) @@
|
| 23 |
|
* @param $config |
| 24 |
|
* @param $expected |
| 25 |
|
*/ |
| 26 |
|
public function testConfiguration($config, $expected) |
| 27 |
|
{ |
| 28 |
|
$builder = new ContainerBuilder(); |
| 29 |
|
|
| 30 |
|
$ext = new OrbitaleCmsExtensionStub(true); |
| 31 |
|
|
| 32 |
|
$ext->load($config, $builder); |
| 33 |
|
|
| 34 |
|
$this->assertEquals($expected['orbitale_cms'], $builder->getParameter('orbitale_cms.config')); |
| 35 |
|
} |
| 36 |
|
|
| 37 |
|
/** |
| 38 |
|
* @dataProvider provideConfiguration |
|
@@ 43-52 (lines=10) @@
|
| 40 |
|
* @param $config |
| 41 |
|
* @param $expected |
| 42 |
|
*/ |
| 43 |
|
public function testConfigurationSymfony2($config, $expected) |
| 44 |
|
{ |
| 45 |
|
$builder = new ContainerBuilder(); |
| 46 |
|
|
| 47 |
|
$ext = new OrbitaleCmsExtensionStub(false); |
| 48 |
|
|
| 49 |
|
$ext->load($config, $builder); |
| 50 |
|
|
| 51 |
|
$this->assertEquals($expected['orbitale_cms'], $builder->getParameter('orbitale_cms.config')); |
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
public function provideConfiguration() |
| 55 |
|
{ |