tests added for filters and some aggregators

This commit is contained in:
2022-08-02 11:24:08 +02:00
parent 20c1a287d8
commit 28dc99ff3f
5 changed files with 222 additions and 5 deletions

View File

@@ -13,13 +13,9 @@ namespace Chill\PersonBundle\Export\Aggregator;
use Chill\MainBundle\Export\AggregatorInterface;
use Chill\MainBundle\Repository\UserRepository;
use Chill\PersonBundle\Entity\Person;
use Chill\PersonBundle\Export\Declarations;
use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\QueryBuilder;
use LogicException;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Contracts\Translation\TranslatorInterface;
final class ReferrerAggregator implements AggregatorInterface
{
@@ -62,7 +58,6 @@ final class ReferrerAggregator implements AggregatorInterface
public function getLabels($key, array $values, $data)
{
dump($values);
return function ($value): string {
if ('_header' === $value) {
return 'Referrer';