diff --git a/Tests/DependencyInjection/ChillReportExtensionTest.php b/Tests/DependencyInjection/ChillReportExtensionTest.php new file mode 100644 index 000000000..beb246ea0 --- /dev/null +++ b/Tests/DependencyInjection/ChillReportExtensionTest.php @@ -0,0 +1,29 @@ + 'test')); + $customizablesEntities = static::$kernel->getContainer() + ->getParameter('chill_custom_fields.customizables_entities'); + + $reportFounded = false; + foreach ($customizablesEntities as $customizablesEntity) { + if($customizablesEntity['class'] === 'Chill\ReportBundle\Entity\Report') { + $reportFounded = true; + } + } + + if(! $reportFounded) { + throw new Exception("Class Chill\ReportBundle\Entity\Report not found in chill_custom_fields.customizables_entities", 1); + } + } +}