mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-24 15:44:59 +00:00
cs: Fix code style (safe rules only).
This commit is contained in:
@@ -1,9 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Chill\ReportBundle\Tests\Controller;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
class ChillReportExtensionTest extends KernelTestCase
|
||||
{
|
||||
/*
|
||||
@@ -11,19 +22,20 @@ class ChillReportExtensionTest extends KernelTestCase
|
||||
*/
|
||||
public function testDeclareReportAsCustomizable()
|
||||
{
|
||||
self::bootKernel(array('environment' => 'test'));
|
||||
self::bootKernel(['environment' => 'test']);
|
||||
$customizablesEntities = static::$kernel->getContainer()
|
||||
->getParameter('chill_custom_fields.customizables_entities');
|
||||
->getParameter('chill_custom_fields.customizables_entities');
|
||||
|
||||
$reportFounded = false;
|
||||
|
||||
foreach ($customizablesEntities as $customizablesEntity) {
|
||||
if($customizablesEntity['class'] === 'Chill\ReportBundle\Entity\Report') {
|
||||
if ('Chill\ReportBundle\Entity\Report' === $customizablesEntity['class']) {
|
||||
$reportFounded = true;
|
||||
}
|
||||
}
|
||||
|
||||
if(! $reportFounded) {
|
||||
throw new Exception("Class Chill\ReportBundle\Entity\Report not found in chill_custom_fields.customizables_entities", 1);
|
||||
if (!$reportFounded) {
|
||||
throw new Exception('Class Chill\\ReportBundle\\Entity\\Report not found in chill_custom_fields.customizables_entities', 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user