mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 14:25:00 +00:00
Export: add clauses on the social work start date and end date within the filter "Filter accompanying period by accompanying period work"'
This commit is contained in:
@@ -11,6 +11,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace Chill\PersonBundle\Tests\Export\Filter\AccompanyingCourseFilters;
|
||||
|
||||
use Chill\MainBundle\Service\RollingDate\RollingDate;
|
||||
use Chill\MainBundle\Test\Export\AbstractFilterTest;
|
||||
use Chill\PersonBundle\Entity\AccompanyingPeriod;
|
||||
use Chill\PersonBundle\Entity\SocialWork\SocialAction;
|
||||
@@ -50,7 +51,36 @@ final class SocialActionFilterTest extends AbstractFilterTest
|
||||
->setMaxResults(1)
|
||||
->getResult();
|
||||
|
||||
yield ['accepted_socialactions' => $array];
|
||||
return [
|
||||
[
|
||||
'accepted_socialactions' => $array,
|
||||
'start_date_after' => null,
|
||||
'start_date_before' => null,
|
||||
'end_date_after' => null,
|
||||
'end_date_before' => null,
|
||||
],
|
||||
[
|
||||
'accepted_socialactions' => $array,
|
||||
'start_date_after' => new RollingDate(RollingDate::T_YEAR_PREVIOUS_START),
|
||||
'start_date_before' => new RollingDate(RollingDate::T_TODAY),
|
||||
'end_date_after' => new RollingDate(RollingDate::T_YEAR_PREVIOUS_START),
|
||||
'end_date_before' => new RollingDate(RollingDate::T_TODAY),
|
||||
],
|
||||
[
|
||||
'accepted_socialactions' => [],
|
||||
'start_date_after' => new RollingDate(RollingDate::T_YEAR_PREVIOUS_START),
|
||||
'start_date_before' => new RollingDate(RollingDate::T_TODAY),
|
||||
'end_date_after' => new RollingDate(RollingDate::T_YEAR_PREVIOUS_START),
|
||||
'end_date_before' => new RollingDate(RollingDate::T_TODAY),
|
||||
],
|
||||
[
|
||||
'accepted_socialactions' => [],
|
||||
'start_date_after' => null,
|
||||
'start_date_before' => null,
|
||||
'end_date_after' => null,
|
||||
'end_date_before' => null,
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
public function getQueryBuilders(): array
|
||||
|
Reference in New Issue
Block a user