mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Fix tests
This commit is contained in:
parent
ec3d901d2f
commit
8fa06e143d
@ -18,6 +18,7 @@ use Chill\MainBundle\Export\SortExportElement;
|
|||||||
use Doctrine\ORM\QueryBuilder;
|
use Doctrine\ORM\QueryBuilder;
|
||||||
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
||||||
use Symfony\Component\Form\FormBuilderInterface;
|
use Symfony\Component\Form\FormBuilderInterface;
|
||||||
|
use Symfony\Contracts\Translation\TranslatableInterface;
|
||||||
use Symfony\Contracts\Translation\TranslatorInterface;
|
use Symfony\Contracts\Translation\TranslatorInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -48,6 +49,10 @@ class SortExportElementTest extends KernelTestCase
|
|||||||
|
|
||||||
$previousName = null;
|
$previousName = null;
|
||||||
foreach ($filters as $filter) {
|
foreach ($filters as $filter) {
|
||||||
|
if ($filter->getTitle() instanceof TranslatableInterface) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (null === $previousName) {
|
if (null === $previousName) {
|
||||||
$previousName = $translator->trans($filter->getTitle());
|
$previousName = $translator->trans($filter->getTitle());
|
||||||
continue;
|
continue;
|
||||||
@ -165,7 +170,7 @@ class SortExportElementTest extends KernelTestCase
|
|||||||
|
|
||||||
public function applyOn(): string
|
public function applyOn(): string
|
||||||
{
|
{
|
||||||
return [];
|
return '';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -216,7 +221,7 @@ class SortExportElementTest extends KernelTestCase
|
|||||||
|
|
||||||
public function applyOn(): string
|
public function applyOn(): string
|
||||||
{
|
{
|
||||||
return [];
|
return '';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user