[export] fix acpw socialWork agent JobAggregator query + unit test

This commit is contained in:
2023-09-27 13:57:42 +02:00
parent 8b7600e09f
commit 7c25ca8dd4
4 changed files with 59 additions and 18 deletions

View File

@@ -41,7 +41,7 @@ final class UserJobAggregatorTest extends AbstractAggregatorTest
{
return [
[
'job_at' => new RollingDate(RollingDate::T_TODAY)
'job_at' => new RollingDate(RollingDate::T_FIXED_DATE, \DateTimeImmutable::createFromFormat('Y-m-d', '2020-01-01')),
],
];
}

View File

@@ -11,6 +11,7 @@ declare(strict_types=1);
namespace Chill\PersonBundle\Tests\Export\Aggregator\SocialWorkAggregators;
use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
use Chill\PersonBundle\Export\Aggregator\SocialWorkAggregators\JobAggregator;
@@ -39,7 +40,9 @@ final class JobAggregatorTest extends AbstractAggregatorTest
public function getFormData(): array
{
return [
[],
[
'job_at' => new RollingDate(RollingDate::T_FIXED_DATE, \DateTimeImmutable::createFromFormat('Y-m-d', '2020-01-01')),
],
];
}