mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
fix cs
This commit is contained in:
@@ -1,11 +1,24 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Export\Export;
|
||||
|
||||
use Chill\MainBundle\Test\Export\AbstractExportTest;
|
||||
use Chill\PersonBundle\Export\Declarations;
|
||||
use Chill\PersonBundle\Export\Export\CountAccompanyingCourse;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
final class CountAccompanyingCourseTest extends AbstractExportTest
|
||||
{
|
||||
private CountAccompanyingCourse $export;
|
||||
@@ -17,27 +30,18 @@ final class CountAccompanyingCourseTest extends AbstractExportTest
|
||||
$this->export = self::$container->get('chill.person.export.count_accompanyingcourse');
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getExport()
|
||||
{
|
||||
return $this->export;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFormData(): array
|
||||
{
|
||||
return [[]];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getModifiersCombination()
|
||||
{
|
||||
return [[Declarations::ACP_TYPE]];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,11 +1,23 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Export\Export;
|
||||
|
||||
use Chill\MainBundle\Test\Export\AbstractExportTest;
|
||||
use Chill\PersonBundle\Export\Declarations;
|
||||
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
final class CountSocialWorkActionsTest extends AbstractExportTest
|
||||
{
|
||||
private CountSocialWorkActions $export;
|
||||
@@ -17,27 +29,18 @@ final class CountSocialWorkActionsTest extends AbstractExportTest
|
||||
$this->export = self::$container->get('chill.person.export.count_social_work_actions');
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getExport()
|
||||
{
|
||||
return $this->export;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFormData(): array
|
||||
{
|
||||
return [[]];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getModifiersCombination()
|
||||
{
|
||||
return [[Declarations::SOCIAL_WORK_ACTION_TYPE]];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,11 +1,25 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Export\Export;
|
||||
|
||||
use Chill\MainBundle\Test\Export\AbstractExportTest;
|
||||
use Chill\PersonBundle\Export\Declarations;
|
||||
use Chill\PersonBundle\Export\Export\StatAccompanyingCourseDuration;
|
||||
use DateTime;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
final class StatAccompanyingCourseDurationTest extends AbstractExportTest
|
||||
{
|
||||
private StatAccompanyingCourseDuration $export;
|
||||
@@ -25,7 +39,7 @@ final class StatAccompanyingCourseDurationTest extends AbstractExportTest
|
||||
public function getFormData(): array
|
||||
{
|
||||
return [
|
||||
['closingdate' => \DateTime::createFromFormat('Y-m-d', '2022-06-30')],
|
||||
['closingdate' => DateTime::createFromFormat('Y-m-d', '2022-06-30')],
|
||||
];
|
||||
}
|
||||
|
||||
@@ -33,4 +47,4 @@ final class StatAccompanyingCourseDurationTest extends AbstractExportTest
|
||||
{
|
||||
return [[Declarations::ACP_TYPE]];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,13 +1,27 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Chill\PersonBundle\Tests\Export\Filter;
|
||||
|
||||
use Chill\MainBundle\Test\Export\AbstractFilterTest;
|
||||
use Chill\PersonBundle\Export\Filter\ActiveOnDateFilter;
|
||||
use DateTime;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
class ActiveOnDateFilterTest extends AbstractFilterTest
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
final class ActiveOnDateFilterTest extends AbstractFilterTest
|
||||
{
|
||||
private ActiveOnDateFilter $filter;
|
||||
|
||||
@@ -25,29 +39,20 @@ class ActiveOnDateFilterTest extends AbstractFilterTest
|
||||
$this->filter = self::$container->get('chill.person.export.filter_activeondate');
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFilter()
|
||||
{
|
||||
return $this->filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFormData(): array
|
||||
{
|
||||
return [
|
||||
[
|
||||
'on_date' => \DateTime::createFromFormat('Y-m-d', '2022-05-01'),
|
||||
'on_date' => DateTime::createFromFormat('Y-m-d', '2022-05-01'),
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getQueryBuilders(): array
|
||||
{
|
||||
if (null === self::$kernel) {
|
||||
@@ -62,4 +67,4 @@ class ActiveOnDateFilterTest extends AbstractFilterTest
|
||||
->select('acp.id'),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,13 +1,27 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Chill\PersonBundle\Tests\Export\Filter;
|
||||
|
||||
use Chill\MainBundle\Test\Export\AbstractFilterTest;
|
||||
use Chill\PersonBundle\Export\Filter\ActiveOneDayBetweenDatesFilter;
|
||||
use DateTime;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
class ActiveOneDayBetweenDatesFilterTest extends AbstractFilterTest
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
final class ActiveOneDayBetweenDatesFilterTest extends AbstractFilterTest
|
||||
{
|
||||
private ActiveOneDayBetweenDatesFilter $filter;
|
||||
|
||||
@@ -25,30 +39,21 @@ class ActiveOneDayBetweenDatesFilterTest extends AbstractFilterTest
|
||||
$this->filter = self::$container->get('chill.person.export.filter_activeonedaybetweendates');
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFilter()
|
||||
{
|
||||
return $this->filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFormData(): array
|
||||
{
|
||||
return [
|
||||
[
|
||||
'date_from' => \DateTime::createFromFormat('Y-m-d', '2022-05-01'),
|
||||
'date_to' => \DateTime::createFromFormat('Y-m-d', '2022-06-01'),
|
||||
'date_from' => DateTime::createFromFormat('Y-m-d', '2022-05-01'),
|
||||
'date_to' => DateTime::createFromFormat('Y-m-d', '2022-06-01'),
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getQueryBuilders(): array
|
||||
{
|
||||
if (null === self::$kernel) {
|
||||
@@ -63,4 +68,4 @@ class ActiveOneDayBetweenDatesFilterTest extends AbstractFilterTest
|
||||
->select('acp.id'),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,5 +1,14 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Export\Filter;
|
||||
|
||||
use Chill\ActivityBundle\Entity\ActivityType;
|
||||
@@ -8,7 +17,11 @@ use Chill\PersonBundle\Export\Filter\ActivityTypeFilter;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
class ActivityTypeFilterTest extends AbstractFilterTest
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
final class ActivityTypeFilterTest extends AbstractFilterTest
|
||||
{
|
||||
private ActivityTypeFilter $filter;
|
||||
|
||||
@@ -26,20 +39,13 @@ class ActivityTypeFilterTest extends AbstractFilterTest
|
||||
$this->filter = self::$container->get('chill.person.export.filter_activitytype');
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFilter()
|
||||
{
|
||||
return $this->filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFormData(): array
|
||||
{
|
||||
|
||||
$em = self::$container->get(EntityManagerInterface::class);
|
||||
|
||||
$array = $em->createQueryBuilder()
|
||||
@@ -50,16 +56,13 @@ class ActivityTypeFilterTest extends AbstractFilterTest
|
||||
|
||||
$data = [];
|
||||
|
||||
foreach($array as $t) {
|
||||
foreach ($array as $t) {
|
||||
$data[] = ['accepted_activitytypes' => $t];
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getQueryBuilders(): array
|
||||
{
|
||||
if (null === self::$kernel) {
|
||||
@@ -74,4 +77,4 @@ class ActivityTypeFilterTest extends AbstractFilterTest
|
||||
->select('acp.id'),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,5 +1,14 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Export\Filter;
|
||||
|
||||
use Chill\MainBundle\Entity\Location;
|
||||
@@ -8,7 +17,11 @@ use Chill\PersonBundle\Export\Filter\AdministrativeLocationFilter;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
class AdministrativeLocationFilterTest extends AbstractFilterTest
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
final class AdministrativeLocationFilterTest extends AbstractFilterTest
|
||||
{
|
||||
private AdministrativeLocationFilter $filter;
|
||||
|
||||
@@ -26,17 +39,11 @@ class AdministrativeLocationFilterTest extends AbstractFilterTest
|
||||
$this->filter = self::$container->get('chill.person.export.filter_administrative_location');
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFilter()
|
||||
{
|
||||
return $this->filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFormData(): array
|
||||
{
|
||||
$em = self::$container->get(EntityManagerInterface::class);
|
||||
@@ -49,16 +56,13 @@ class AdministrativeLocationFilterTest extends AbstractFilterTest
|
||||
|
||||
$data = [];
|
||||
|
||||
foreach($array as $l) {
|
||||
foreach ($array as $l) {
|
||||
$data[] = ['accepted_locations' => $l];
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getQueryBuilders(): array
|
||||
{
|
||||
if (null === self::$kernel) {
|
||||
@@ -73,4 +77,4 @@ class AdministrativeLocationFilterTest extends AbstractFilterTest
|
||||
->select('acp.id'),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,5 +1,14 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Chill\PersonBundle\Tests\Export\Filter;
|
||||
|
||||
use Chill\MainBundle\Test\Export\AbstractFilterTest;
|
||||
@@ -7,7 +16,11 @@ use Chill\PersonBundle\Entity\AccompanyingPeriod\ClosingMotive;
|
||||
use Chill\PersonBundle\Export\Filter\ClosingMotiveFilter;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
|
||||
class ClosingMotiveFilterTest extends AbstractFilterTest
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
final class ClosingMotiveFilterTest extends AbstractFilterTest
|
||||
{
|
||||
private ClosingMotiveFilter $filter;
|
||||
|
||||
@@ -24,17 +37,11 @@ class ClosingMotiveFilterTest extends AbstractFilterTest
|
||||
$this->filter = self::$container->get('chill.person.export.filter_closingmotive');
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFilter()
|
||||
{
|
||||
return $this->filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFormData(): array
|
||||
{
|
||||
$em = self::$container->get(EntityManagerInterface::class);
|
||||
@@ -47,19 +54,15 @@ class ClosingMotiveFilterTest extends AbstractFilterTest
|
||||
|
||||
$data = [];
|
||||
|
||||
foreach($array as $m) {
|
||||
foreach ($array as $m) {
|
||||
$data[] = ['accepted_closingmotives' => $m];
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getQueryBuilders(): array
|
||||
{
|
||||
|
||||
if (null === self::$kernel) {
|
||||
self::bootKernel();
|
||||
}
|
||||
@@ -72,4 +75,4 @@ class ClosingMotiveFilterTest extends AbstractFilterTest
|
||||
->from('ChillPersonBundle:AccompanyingPeriod', 'acp'),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,12 +1,25 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Chill\PersonBundle\Tests\Export\Filter;
|
||||
|
||||
use Chill\MainBundle\Test\Export\AbstractFilterTest;
|
||||
use Chill\PersonBundle\Export\Filter\ConfidentialFilter;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
|
||||
class ConfidentialFilterTest extends AbstractFilterTest
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
final class ConfidentialFilterTest extends AbstractFilterTest
|
||||
{
|
||||
private ConfidentialFilter $filter;
|
||||
|
||||
@@ -23,31 +36,21 @@ class ConfidentialFilterTest extends AbstractFilterTest
|
||||
$this->filter = self::$container->get('chill.person.export.filter_confidential');
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFilter()
|
||||
{
|
||||
return $this->filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFormData(): array
|
||||
{
|
||||
return [
|
||||
['accepted_confidentials' => true],
|
||||
['accepted_confidentials' => false]
|
||||
['accepted_confidentials' => false],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getQueryBuilders(): array
|
||||
{
|
||||
|
||||
if (null === self::$kernel) {
|
||||
self::bootKernel();
|
||||
}
|
||||
@@ -60,4 +63,4 @@ class ConfidentialFilterTest extends AbstractFilterTest
|
||||
->from('ChillPersonBundle:AccompanyingPeriod', 'acp'),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,12 +1,25 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Chill\PersonBundle\Tests\Export\Filter;
|
||||
|
||||
use Chill\MainBundle\Test\Export\AbstractFilterTest;
|
||||
use Chill\PersonBundle\Export\Filter\EmergencyFilter;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
|
||||
class EmergencyFilterTest extends AbstractFilterTest
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
final class EmergencyFilterTest extends AbstractFilterTest
|
||||
{
|
||||
private EmergencyFilter $filter;
|
||||
|
||||
@@ -32,13 +45,12 @@ class EmergencyFilterTest extends AbstractFilterTest
|
||||
{
|
||||
return [
|
||||
['accepted_emergencies' => true],
|
||||
['accepted_emergencies' => false]
|
||||
['accepted_emergencies' => false],
|
||||
];
|
||||
}
|
||||
|
||||
public function getQueryBuilders(): array
|
||||
{
|
||||
|
||||
if (null === self::$kernel) {
|
||||
self::bootKernel();
|
||||
}
|
||||
@@ -51,4 +63,4 @@ class EmergencyFilterTest extends AbstractFilterTest
|
||||
->from('ChillPersonBundle:AccompanyingPeriod', 'acp'),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,5 +1,14 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Export\Filter;
|
||||
|
||||
use Chill\MainBundle\Test\Export\AbstractFilterTest;
|
||||
@@ -8,7 +17,11 @@ use Chill\PersonBundle\Export\Filter\EvaluationFilter;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
class EvaluationFilterTest extends AbstractFilterTest
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
final class EvaluationFilterTest extends AbstractFilterTest
|
||||
{
|
||||
private EvaluationFilter $filter;
|
||||
|
||||
@@ -26,17 +39,11 @@ class EvaluationFilterTest extends AbstractFilterTest
|
||||
$this->filter = self::$container->get('chill.person.export.filter_evaluation');
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFilter()
|
||||
{
|
||||
return $this->filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFormData(): array
|
||||
{
|
||||
$em = self::$container->get(EntityManagerInterface::class);
|
||||
@@ -49,16 +56,13 @@ class EvaluationFilterTest extends AbstractFilterTest
|
||||
|
||||
$data = [];
|
||||
|
||||
foreach($array as $e) {
|
||||
foreach ($array as $e) {
|
||||
$data[] = ['accepted_evaluations' => $e];
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getQueryBuilders(): array
|
||||
{
|
||||
if (null === self::$kernel) {
|
||||
@@ -73,4 +77,4 @@ class EvaluationFilterTest extends AbstractFilterTest
|
||||
->select('acp.id'),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,13 +1,27 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Export\Filter;
|
||||
|
||||
use Chill\MainBundle\Test\Export\AbstractFilterTest;
|
||||
use Chill\PersonBundle\Export\Filter\GeographicalUnitStatFilter;
|
||||
use DateTime;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
class GeographicalUnitStatFilterTest extends AbstractFilterTest
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
final class GeographicalUnitStatFilterTest extends AbstractFilterTest
|
||||
{
|
||||
private GeographicalUnitStatFilter $filter;
|
||||
|
||||
@@ -25,30 +39,21 @@ class GeographicalUnitStatFilterTest extends AbstractFilterTest
|
||||
$this->filter = self::$container->get('chill.person.export.filter_geographicalunitstat');
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFilter()
|
||||
{
|
||||
return $this->filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFormData(): array
|
||||
{
|
||||
return [
|
||||
[
|
||||
'date' => \DateTime::createFromFormat('Y-m-d', '2022-05-01'),
|
||||
'accepted_loctype' => 'center'
|
||||
'date' => DateTime::createFromFormat('Y-m-d', '2022-05-01'),
|
||||
'accepted_loctype' => 'center',
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getQueryBuilders(): array
|
||||
{
|
||||
if (null === self::$kernel) {
|
||||
@@ -63,4 +68,4 @@ class GeographicalUnitStatFilterTest extends AbstractFilterTest
|
||||
->select('acp.id'),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,12 +1,25 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Chill\PersonBundle\Tests\Export\Filter;
|
||||
|
||||
use Chill\MainBundle\Test\Export\AbstractFilterTest;
|
||||
use Chill\PersonBundle\Export\Filter\IntensityFilter;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
|
||||
class IntensityFilterTest extends AbstractFilterTest
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
final class IntensityFilterTest extends AbstractFilterTest
|
||||
{
|
||||
private IntensityFilter $filter;
|
||||
|
||||
@@ -23,31 +36,21 @@ class IntensityFilterTest extends AbstractFilterTest
|
||||
$this->filter = self::$container->get('chill.person.export.filter_intensity');
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFilter()
|
||||
{
|
||||
return $this->filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFormData(): array
|
||||
{
|
||||
return [
|
||||
['accepted_intensities' => 'occasional'],
|
||||
['accepted_intensities' => 'regular']
|
||||
['accepted_intensities' => 'regular'],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getQueryBuilders(): array
|
||||
{
|
||||
|
||||
if (null === self::$kernel) {
|
||||
self::bootKernel();
|
||||
}
|
||||
@@ -60,4 +63,4 @@ class IntensityFilterTest extends AbstractFilterTest
|
||||
->from('ChillPersonBundle:AccompanyingPeriod', 'acp'),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,12 +1,24 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Chill\PersonBundle\Tests\Export\Filter;
|
||||
|
||||
use Chill\MainBundle\Test\Export\AbstractFilterTest;
|
||||
use Chill\PersonBundle\Export\Filter\UserJobFilter;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
|
||||
class JobFilterTest extends AbstractFilterTest
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
final class JobFilterTest extends AbstractFilterTest
|
||||
{
|
||||
private JobFilter $filter;
|
||||
|
||||
@@ -23,28 +35,18 @@ class JobFilterTest extends AbstractFilterTest
|
||||
$this->filter = self::$container->get('chill.person.export.filter_job');
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFilter()
|
||||
{
|
||||
return $this->filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFormData(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getQueryBuilders(): array
|
||||
{
|
||||
|
||||
if (null === self::$kernel) {
|
||||
self::bootKernel();
|
||||
}
|
||||
@@ -57,4 +59,4 @@ class JobFilterTest extends AbstractFilterTest
|
||||
->from('ChillPersonBundle:AccompanyingPeriodWork', 'acpw'),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,13 +1,27 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Chill\PersonBundle\Tests\Export\Filter;
|
||||
|
||||
use Chill\MainBundle\Test\Export\AbstractFilterTest;
|
||||
use Chill\PersonBundle\Export\Filter\OpenBetweenDatesFilter;
|
||||
use DateTime;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
class OpenBetweenDatesFilterTest extends AbstractFilterTest
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
final class OpenBetweenDatesFilterTest extends AbstractFilterTest
|
||||
{
|
||||
private OpenBetweenDatesFilter $filter;
|
||||
|
||||
@@ -25,30 +39,21 @@ class OpenBetweenDatesFilterTest extends AbstractFilterTest
|
||||
$this->filter = self::$container->get('chill.person.export.filter_openbetweendates');
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFilter()
|
||||
{
|
||||
return $this->filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFormData(): array
|
||||
{
|
||||
return [
|
||||
[
|
||||
'date_from' => \DateTime::createFromFormat('Y-m-d', '2022-05-01'),
|
||||
'date_to' => \DateTime::createFromFormat('Y-m-d', '2022-06-01'),
|
||||
'date_from' => DateTime::createFromFormat('Y-m-d', '2022-05-01'),
|
||||
'date_to' => DateTime::createFromFormat('Y-m-d', '2022-06-01'),
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getQueryBuilders(): array
|
||||
{
|
||||
if (null === self::$kernel) {
|
||||
@@ -63,4 +68,4 @@ class OpenBetweenDatesFilterTest extends AbstractFilterTest
|
||||
->select('acp.id'),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,5 +1,14 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Chill\PersonBundle\Tests\Export\Filter;
|
||||
|
||||
use Chill\MainBundle\Test\Export\AbstractFilterTest;
|
||||
@@ -7,7 +16,11 @@ use Chill\PersonBundle\Entity\AccompanyingPeriod\Origin;
|
||||
use Chill\PersonBundle\Export\Filter\OriginFilter;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
|
||||
class OriginFilterTest extends AbstractFilterTest
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
final class OriginFilterTest extends AbstractFilterTest
|
||||
{
|
||||
private OriginFilter $filter;
|
||||
|
||||
@@ -24,17 +37,11 @@ class OriginFilterTest extends AbstractFilterTest
|
||||
$this->filter = self::$container->get('chill.person.export.filter_origin');
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFilter()
|
||||
{
|
||||
return $this->filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFormData(): array
|
||||
{
|
||||
$em = self::$container->get(EntityManagerInterface::class);
|
||||
@@ -47,19 +54,15 @@ class OriginFilterTest extends AbstractFilterTest
|
||||
|
||||
$data = [];
|
||||
|
||||
foreach($array as $l) {
|
||||
foreach ($array as $l) {
|
||||
$data[] = ['accepted_origins' => $l];
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getQueryBuilders(): array
|
||||
{
|
||||
|
||||
if (null === self::$kernel) {
|
||||
self::bootKernel();
|
||||
}
|
||||
@@ -72,4 +75,4 @@ class OriginFilterTest extends AbstractFilterTest
|
||||
->from('ChillPersonBundle:AccompanyingPeriod', 'acp'),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,5 +1,14 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Chill\PersonBundle\Tests\Export\Filter;
|
||||
|
||||
use Chill\MainBundle\Entity\User;
|
||||
@@ -8,7 +17,11 @@ use Chill\PersonBundle\Export\Filter\ReferrerFilter;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
class ReferrerFilterTest extends AbstractFilterTest
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
final class ReferrerFilterTest extends AbstractFilterTest
|
||||
{
|
||||
private ReferrerFilter $filter;
|
||||
|
||||
@@ -25,17 +38,11 @@ class ReferrerFilterTest extends AbstractFilterTest
|
||||
$this->filter = self::$container->get('chill.person.export.filter_referrer');
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFilter()
|
||||
{
|
||||
return $this->filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFormData(): array
|
||||
{
|
||||
$em = self::$container->get(EntityManagerInterface::class);
|
||||
@@ -48,16 +55,13 @@ class ReferrerFilterTest extends AbstractFilterTest
|
||||
|
||||
$data = [];
|
||||
|
||||
foreach($array as $u) {
|
||||
foreach ($array as $u) {
|
||||
$data[] = ['accepted_referrers' => $u];
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getQueryBuilders(): array
|
||||
{
|
||||
if (null === self::$kernel) {
|
||||
@@ -79,4 +83,4 @@ class ReferrerFilterTest extends AbstractFilterTest
|
||||
->select('r.id'),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,14 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace Export\Filter;
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Export\Filter;
|
||||
|
||||
use Chill\MainBundle\Test\Export\AbstractFilterTest;
|
||||
use Chill\PersonBundle\Export\Filter\RequestorFilter;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
class RequestorFilterTest extends AbstractFilterTest
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
final class RequestorFilterTest extends AbstractFilterTest
|
||||
{
|
||||
private RequestorFilter $filter;
|
||||
|
||||
@@ -26,17 +38,11 @@ class RequestorFilterTest extends AbstractFilterTest
|
||||
$this->filter = self::$container->get('chill.person.export.filter_requestor');
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFilter()
|
||||
{
|
||||
return $this->filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFormData(): array
|
||||
{
|
||||
return [
|
||||
@@ -47,9 +53,6 @@ class RequestorFilterTest extends AbstractFilterTest
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getQueryBuilders(): array
|
||||
{
|
||||
if (null === self::$kernel) {
|
||||
@@ -64,4 +67,4 @@ class RequestorFilterTest extends AbstractFilterTest
|
||||
->select('acp.id'),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,12 +1,24 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Chill\PersonBundle\Tests\Export\Filter;
|
||||
|
||||
use Chill\MainBundle\Test\Export\AbstractFilterTest;
|
||||
use Chill\PersonBundle\Export\Filter\UserScopeFilter;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
|
||||
class ScopeFilterTest extends AbstractFilterTest
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
final class ScopeFilterTest extends AbstractFilterTest
|
||||
{
|
||||
private ScopeFilter $filter;
|
||||
|
||||
@@ -21,31 +33,20 @@ class ScopeFilterTest extends AbstractFilterTest
|
||||
$request->getLocale()->willReturn('fr');
|
||||
|
||||
$this->filter = self::$container->get('chill.person.export.filter_scope');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFilter()
|
||||
{
|
||||
return $this->filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFormData(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getQueryBuilders(): array
|
||||
{
|
||||
|
||||
if (null === self::$kernel) {
|
||||
self::bootKernel();
|
||||
}
|
||||
@@ -58,4 +59,4 @@ class ScopeFilterTest extends AbstractFilterTest
|
||||
->from('ChillPersonBundle:AccompanyingPeriodWork', 'acpw'),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,5 +1,14 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Export\Filter;
|
||||
|
||||
use Chill\MainBundle\Test\Export\AbstractFilterTest;
|
||||
@@ -8,7 +17,11 @@ use Chill\PersonBundle\Export\Filter\SocialActionFilter;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
class SocialActionFilterTest extends AbstractFilterTest
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
final class SocialActionFilterTest extends AbstractFilterTest
|
||||
{
|
||||
private SocialActionFilter $filter;
|
||||
|
||||
@@ -26,17 +39,11 @@ class SocialActionFilterTest extends AbstractFilterTest
|
||||
$this->filter = self::$container->get('chill.person.export.filter_socialaction');
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFilter()
|
||||
{
|
||||
return $this->filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFormData(): array
|
||||
{
|
||||
$em = self::$container->get(EntityManagerInterface::class);
|
||||
@@ -49,16 +56,13 @@ class SocialActionFilterTest extends AbstractFilterTest
|
||||
|
||||
$data = [];
|
||||
|
||||
foreach($array as $a) {
|
||||
foreach ($array as $a) {
|
||||
$data[] = ['accepted_socialactions' => $a];
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getQueryBuilders(): array
|
||||
{
|
||||
if (null === self::$kernel) {
|
||||
@@ -73,4 +77,4 @@ class SocialActionFilterTest extends AbstractFilterTest
|
||||
->select('acp.id'),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,5 +1,14 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Chill\PersonBundle\Tests\Export\Filter;
|
||||
|
||||
use Chill\MainBundle\Test\Export\AbstractFilterTest;
|
||||
@@ -7,7 +16,11 @@ use Chill\PersonBundle\Entity\SocialWork\SocialIssue;
|
||||
use Chill\PersonBundle\Export\Filter\SocialIssueFilter;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
|
||||
class SocialIssueFilterTest extends AbstractFilterTest
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
final class SocialIssueFilterTest extends AbstractFilterTest
|
||||
{
|
||||
private SocialIssueFilter $filter;
|
||||
|
||||
@@ -24,17 +37,11 @@ class SocialIssueFilterTest extends AbstractFilterTest
|
||||
$this->filter = self::$container->get('chill.person.export.filter_socialissue');
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFilter()
|
||||
{
|
||||
return $this->filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFormData(): array
|
||||
{
|
||||
$em = self::$container->get(EntityManagerInterface::class);
|
||||
@@ -47,19 +54,15 @@ class SocialIssueFilterTest extends AbstractFilterTest
|
||||
|
||||
$data = [];
|
||||
|
||||
foreach($array as $i) {
|
||||
foreach ($array as $i) {
|
||||
$data[] = ['accepted_socialissues' => $i];
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getQueryBuilders(): array
|
||||
{
|
||||
|
||||
if (null === self::$kernel) {
|
||||
self::bootKernel();
|
||||
}
|
||||
@@ -72,4 +75,4 @@ class SocialIssueFilterTest extends AbstractFilterTest
|
||||
->from('ChillPersonBundle:AccompanyingPeriod', 'acp'),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,12 +1,25 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Chill\PersonBundle\Tests\Export\Filter;
|
||||
|
||||
use Chill\MainBundle\Test\Export\AbstractFilterTest;
|
||||
use Chill\PersonBundle\Entity\AccompanyingPeriod;
|
||||
use Chill\PersonBundle\Export\Filter\StepFilter;
|
||||
|
||||
class StepFilterTest extends AbstractFilterTest
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
final class StepFilterTest extends AbstractFilterTest
|
||||
{
|
||||
private StepFilter $filter;
|
||||
|
||||
@@ -23,17 +36,11 @@ class StepFilterTest extends AbstractFilterTest
|
||||
$this->filter = self::$container->get('chill.person.export.filter_step');
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFilter()
|
||||
{
|
||||
return $this->filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFormData(): array
|
||||
{
|
||||
return [
|
||||
@@ -43,12 +50,8 @@ class StepFilterTest extends AbstractFilterTest
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getQueryBuilders(): array
|
||||
{
|
||||
|
||||
if (null === self::$kernel) {
|
||||
self::bootKernel();
|
||||
}
|
||||
@@ -61,4 +64,4 @@ class StepFilterTest extends AbstractFilterTest
|
||||
->from('ChillPersonBundle:AccompanyingPeriod', 'acp'),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,12 +1,25 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Chill\PersonBundle\Tests\Export\Filter;
|
||||
|
||||
use Chill\MainBundle\Test\Export\AbstractFilterTest;
|
||||
use Chill\PersonBundle\Export\Filter\UserJobFilter;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
|
||||
class UserJobFilterTest extends AbstractFilterTest
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
final class UserJobFilterTest extends AbstractFilterTest
|
||||
{
|
||||
private UserJobFilter $filter;
|
||||
|
||||
@@ -23,28 +36,18 @@ class UserJobFilterTest extends AbstractFilterTest
|
||||
$this->filter = self::$container->get('chill.person.export.filter_userjob');
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFilter()
|
||||
{
|
||||
return $this->filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFormData(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getQueryBuilders(): array
|
||||
{
|
||||
|
||||
if (null === self::$kernel) {
|
||||
self::bootKernel();
|
||||
}
|
||||
@@ -57,4 +60,4 @@ class UserJobFilterTest extends AbstractFilterTest
|
||||
->from('ChillPersonBundle:AccompanyingPeriod', 'acp'),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,12 +1,25 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Chill\PersonBundle\Tests\Export\Filter;
|
||||
|
||||
use Chill\MainBundle\Test\Export\AbstractFilterTest;
|
||||
use Chill\PersonBundle\Export\Filter\UserScopeFilter;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
|
||||
class UserScopeFilterTest extends AbstractFilterTest
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
final class UserScopeFilterTest extends AbstractFilterTest
|
||||
{
|
||||
private UserScopeFilter $filter;
|
||||
|
||||
@@ -21,31 +34,20 @@ class UserScopeFilterTest extends AbstractFilterTest
|
||||
$request->getLocale()->willReturn('fr');
|
||||
|
||||
$this->filter = self::$container->get('chill.person.export.filter_userscope');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFilter()
|
||||
{
|
||||
return $this->filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getFormData(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getQueryBuilders(): array
|
||||
{
|
||||
|
||||
if (null === self::$kernel) {
|
||||
self::bootKernel();
|
||||
}
|
||||
@@ -58,4 +60,4 @@ class UserScopeFilterTest extends AbstractFilterTest
|
||||
->from('ChillPersonBundle:AccompanyingPeriod', 'acp'),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user