diff --git a/src/Bundle/ChillMainBundle/Tests/Export/SortExportElementTest.php b/src/Bundle/ChillMainBundle/Tests/Export/SortExportElementTest.php index 6719b9699..bcc51f480 100644 --- a/src/Bundle/ChillMainBundle/Tests/Export/SortExportElementTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Export/SortExportElementTest.php @@ -18,6 +18,7 @@ use Chill\MainBundle\Export\SortExportElement; use Doctrine\ORM\QueryBuilder; use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; use Symfony\Component\Form\FormBuilderInterface; +use Symfony\Contracts\Translation\TranslatableInterface; use Symfony\Contracts\Translation\TranslatorInterface; /** @@ -48,6 +49,10 @@ class SortExportElementTest extends KernelTestCase $previousName = null; foreach ($filters as $filter) { + if ($filter->getTitle() instanceof TranslatableInterface) { + continue; + } + if (null === $previousName) { $previousName = $translator->trans($filter->getTitle()); continue; @@ -165,7 +170,7 @@ class SortExportElementTest extends KernelTestCase public function applyOn(): string { - return []; + return ''; } }; } @@ -216,7 +221,7 @@ class SortExportElementTest extends KernelTestCase public function applyOn(): string { - return []; + return ''; } }; }