Refactor filters and aggregators of "acpwusers" for using the acpw referrer history instead

This commit is contained in:
2023-10-16 13:06:25 +02:00
parent 51a4ffca2e
commit b65f76262a
10 changed files with 101 additions and 117 deletions

View File

@@ -22,6 +22,7 @@ use Chill\CalendarBundle\Entity\Calendar;
use Chill\CalendarBundle\Export\Filter\JobFilter;
use Chill\MainBundle\Entity\UserJob;
use Chill\MainBundle\Test\Export\AbstractFilterTest;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\EntityManagerInterface;
/**
@@ -62,15 +63,11 @@ final class JobFilterTest extends AbstractFilterTest
->setMaxResults(1)
->getResult();
$data = [];
foreach ($array as $a) {
$data[] = [
'job' => $a,
];
}
return $data;
return [
[
'job' => new ArrayCollection($array)
]
];
}
public function getQueryBuilders(): array

View File

@@ -22,6 +22,7 @@ use Chill\CalendarBundle\Entity\Calendar;
use Chill\CalendarBundle\Export\Filter\ScopeFilter;
use Chill\MainBundle\Entity\Scope;
use Chill\MainBundle\Test\Export\AbstractFilterTest;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\EntityManagerInterface;
/**
@@ -62,15 +63,11 @@ final class ScopeFilterTest extends AbstractFilterTest
->setMaxResults(1)
->getResult();
$data = [];
foreach ($array as $a) {
$data[] = [
'scope' => $a,
];
}
return $data;
return [
[
'scope' => new ArrayCollection($array)
]
];
}
public function getQueryBuilders(): array