Fix tests

This commit is contained in:
2025-04-08 15:37:27 +02:00
parent ec3d901d2f
commit 8fa06e143d

View File

@@ -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 '';
}
};
}