/** * @dataProvider provideConfigurationFiles */ public function testBackendConfigurations($inputFixtureFilepath, $outputFixtureFilepath) { if (!$this->isTestCompatible($inputFixtureFilepath)) { $this->markTestSkipped('This test is not compatible with this Symfony Version.'); } $configuration = Yaml::parse(file_get_contents($inputFixtureFilepath)); $app = new \ConfigPassKernel($configuration['easy_admin']); $app->boot(); $this->assertBackendConfigIsCorrect($app->getContainer(), $outputFixtureFilepath); }
/** * @dataProvider provideConfigurationFiles */ public function testBackendConfigurations($inputFixtureFilepath, $outputFixtureFilepath) { $isSymfony23 = 2 == Kernel::MAJOR_VERSION && 3 == Kernel::MINOR_VERSION; if ($isSymfony23 && !$this->isTestCompatibleWithSymfony23($inputFixtureFilepath)) { $this->markTestSkipped('This test is not compatible with Symfony 2.3 because the YAML component of that version does not ignore duplicate keys.'); } $configuration = Yaml::parse(file_get_contents($inputFixtureFilepath)); $app = new \ConfigPassKernel($configuration['easy_admin']); $app->boot(); $this->assertConfigurationParameterMatchesExpectedValue($app->getContainer(), $outputFixtureFilepath); }