apply more cs rules for php-cs

This commit is contained in:
2023-10-17 13:27:03 +02:00
parent 0b0cbed9db
commit bc2041cbdd
1485 changed files with 8169 additions and 9620 deletions

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class AdministrativeLocationAggregatorTest extends AbstractAggregatorTest
@@ -52,7 +53,7 @@ final class AdministrativeLocationAggregatorTest extends AbstractAggregatorTest
return [
$em->createQueryBuilder()
->select('count(acp.id)')
->from(AccompanyingPeriod::class, 'acp')
->from(AccompanyingPeriod::class, 'acp'),
];
}
}

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class ClosingMotiveAggregatorTest extends AbstractAggregatorTest
@@ -52,7 +53,7 @@ final class ClosingMotiveAggregatorTest extends AbstractAggregatorTest
return [
$em->createQueryBuilder()
->select('count(acp.id)')
->from(AccompanyingPeriod::class, 'acp')
->from(AccompanyingPeriod::class, 'acp'),
];
}
}

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class ConfidentialAggregatorTest extends AbstractAggregatorTest

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class DurationAggregatorTest extends AbstractAggregatorTest

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class EmergencyAggregatorTest extends AbstractAggregatorTest

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class EvaluationAggregatorTest extends AbstractAggregatorTest

View File

@@ -16,11 +16,11 @@ use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
use Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\GeographicalUnitStatAggregator;
use DateTimeImmutable;
use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class GeographicalUnitStatAggregatorTest extends AbstractAggregatorTest
@@ -46,7 +46,7 @@ final class GeographicalUnitStatAggregatorTest extends AbstractAggregatorTest
$levels = $repository->findAll();
return [
['date_calc' => new RollingDate(RollingDate::T_TODAY), 'level' => $levels]
['date_calc' => new RollingDate(RollingDate::T_TODAY), 'level' => $levels],
];
}

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class IntensityAggregatorTest extends AbstractAggregatorTest

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class OriginAggregatorTest extends AbstractAggregatorTest

View File

@@ -15,11 +15,11 @@ use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
use Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\ReferrerAggregator;
use DateTimeImmutable;
use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class ReferrerAggregatorTest extends AbstractAggregatorTest
@@ -41,7 +41,7 @@ final class ReferrerAggregatorTest extends AbstractAggregatorTest
public function getFormData(): array
{
return [
['date_calc' => new RollingDate(RollingDate::T_TODAY)]
['date_calc' => new RollingDate(RollingDate::T_TODAY)],
];
}

View File

@@ -19,13 +19,13 @@ use Chill\MainBundle\Templating\TranslatableStringHelperInterface;
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
use Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\ReferrerScopeAggregator;
use DateTimeImmutable;
use Doctrine\ORM\EntityManagerInterface;
use Prophecy\Argument;
use Prophecy\PhpUnit\ProphecyTrait;
/**
* @internal
*
* @coversNothing
*/
final class ReferrerScopeAggregatorTest extends AbstractAggregatorTest
@@ -43,7 +43,7 @@ final class ReferrerScopeAggregatorTest extends AbstractAggregatorTest
);
$dateConverter = $this->prophesize(RollingDateConverterInterface::class);
$dateConverter->convert(Argument::type(RollingDate::class))->willReturn(new DateTimeImmutable());
$dateConverter->convert(Argument::type(RollingDate::class))->willReturn(new \DateTimeImmutable());
return new ReferrerScopeAggregator(
$scopeRepository->reveal(),
@@ -56,7 +56,7 @@ final class ReferrerScopeAggregatorTest extends AbstractAggregatorTest
{
return [
[
'date_calc' => new RollingDate(RollingDate::T_TODAY)
'date_calc' => new RollingDate(RollingDate::T_TODAY),
],
];
}
@@ -70,7 +70,7 @@ final class ReferrerScopeAggregatorTest extends AbstractAggregatorTest
return [
$em->createQueryBuilder()
->select('count(acp.id)')
->from(AccompanyingPeriod::class, 'acp')
->from(AccompanyingPeriod::class, 'acp'),
];
}
}

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class RequestorAggregatorTest extends AbstractAggregatorTest

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class ScopeAggregatorTest extends AbstractAggregatorTest
@@ -56,7 +57,7 @@ final class ScopeAggregatorTest extends AbstractAggregatorTest
->join('acp.scopes', 'acpscope'),
$em->createQueryBuilder()
->select('count(acp.id)')
->from(AccompanyingPeriod::class, 'acp')
->from(AccompanyingPeriod::class, 'acp'),
];
}
}

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class SocialActionAggregatorTest extends AbstractAggregatorTest

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class SocialIssueAggregatorTest extends AbstractAggregatorTest

View File

@@ -15,11 +15,11 @@ use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
use Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\StepAggregator;
use DateTime;
use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class StepAggregatorTest extends AbstractAggregatorTest
@@ -42,7 +42,7 @@ final class StepAggregatorTest extends AbstractAggregatorTest
{
return [
[
'on_date' => new RollingDate(RollingDate::T_TODAY)
'on_date' => new RollingDate(RollingDate::T_TODAY),
],
];
}

View File

@@ -19,6 +19,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class UserJobAggregatorTest extends AbstractAggregatorTest
@@ -59,7 +60,7 @@ final class UserJobAggregatorTest extends AbstractAggregatorTest
->join('acp.job', 'acpjob'),
$em->createQueryBuilder()
->select('count(acp.id)')
->from(AccompanyingPeriod::class, 'acp')
->from(AccompanyingPeriod::class, 'acp'),
];
}
}

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class EvaluationTypeAggregatorTest extends AbstractAggregatorTest

View File

@@ -15,11 +15,11 @@ use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
use Chill\PersonBundle\Export\Aggregator\HouseholdAggregators\ChildrenNumberAggregator;
use DateTime;
use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class ChildrenNumberAggregatorTest extends AbstractAggregatorTest
@@ -42,7 +42,7 @@ final class ChildrenNumberAggregatorTest extends AbstractAggregatorTest
{
return [
[
'on_date' => new RollingDate(RollingDate::T_TODAY)
'on_date' => new RollingDate(RollingDate::T_TODAY),
],
];
}

View File

@@ -15,11 +15,11 @@ use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
use Chill\PersonBundle\Export\Aggregator\HouseholdAggregators\CompositionAggregator;
use DateTime;
use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class CompositionAggregatorTest extends AbstractAggregatorTest
@@ -42,7 +42,7 @@ final class CompositionAggregatorTest extends AbstractAggregatorTest
{
return [
[
'on_date' => new RollingDate(RollingDate::T_TODAY)
'on_date' => new RollingDate(RollingDate::T_TODAY),
],
];
}

View File

@@ -15,11 +15,11 @@ use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
use Chill\PersonBundle\Entity\Person;
use Chill\PersonBundle\Export\Aggregator\PersonAggregators\AgeAggregator;
use DateTime;
use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class AgeAggregatorTest extends AbstractAggregatorTest
@@ -42,7 +42,7 @@ final class AgeAggregatorTest extends AbstractAggregatorTest
{
return [
[
'date_age_calculation' => new RollingDate(RollingDate::T_TODAY)
'date_age_calculation' => new RollingDate(RollingDate::T_TODAY),
],
];
}

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class CountryOfBirthAggregatorTest extends AbstractAggregatorTest

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class GenderAggregatorTest extends AbstractAggregatorTest

View File

@@ -16,12 +16,12 @@ use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
use Chill\PersonBundle\Entity\Household\HouseholdMember;
use Chill\PersonBundle\Entity\Person;
use Chill\PersonBundle\Export\Aggregator\PersonAggregators\HouseholdPositionAggregator;
use DateTime;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\Query\Expr;
/**
* @internal
*
* @coversNothing
*/
final class HouseholdPositionAggregatorTest extends AbstractAggregatorTest
@@ -44,7 +44,7 @@ final class HouseholdPositionAggregatorTest extends AbstractAggregatorTest
{
return [
[
'date_position' => new RollingDate(RollingDate::T_TODAY)
'date_position' => new RollingDate(RollingDate::T_TODAY),
],
];
}
@@ -62,7 +62,7 @@ final class HouseholdPositionAggregatorTest extends AbstractAggregatorTest
->join(HouseholdMember::class, 'householdmember', Expr\Join::WITH, 'householdmember.person = person'),
$em->createQueryBuilder()
->select('count(person.id)')
->from(Person::class, 'person')
->from(Person::class, 'person'),
];
}
}

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class MaritalStatusAggregatorTest extends AbstractAggregatorTest
@@ -56,7 +57,7 @@ final class MaritalStatusAggregatorTest extends AbstractAggregatorTest
->join('person.maritalStatus', 'personmarital'),
$em->createQueryBuilder()
->select('count(person.id)')
->from(Person::class, 'person')
->from(Person::class, 'person'),
];
}
}

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class NationalityAggregatorTest extends AbstractAggregatorTest

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class ActionTypeAggregatorTest extends AbstractAggregatorTest

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class GoalAggregatorTest extends AbstractAggregatorTest

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class GoalResultAggregatorTest extends AbstractAggregatorTest
@@ -60,7 +61,7 @@ final class GoalResultAggregatorTest extends AbstractAggregatorTest
->select('count(acp.id)')
->from(AccompanyingPeriod::class, 'acp')
->join('acp.works', 'acpw')
->join('acpw.goals', 'goal')
->join('acpw.goals', 'goal'),
];
}
}

View File

@@ -11,7 +11,6 @@ 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;
@@ -19,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class JobAggregatorTest extends AbstractAggregatorTest
@@ -54,7 +54,7 @@ final class JobAggregatorTest extends AbstractAggregatorTest
$em->createQueryBuilder()
->select('count(acp.id)')
->from(AccompanyingPeriod::class, 'acp')
->join('acp.works', 'acpw')
->join('acp.works', 'acpw'),
];
}
}

View File

@@ -19,6 +19,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class ReferrerAggregatorTest extends AbstractAggregatorTest
@@ -42,8 +43,8 @@ final class ReferrerAggregatorTest extends AbstractAggregatorTest
return [
[], // there are previous saved export which does not contains any data
[
'referrer_at' => new RollingDate(RollingDate::T_TODAY)
]
'referrer_at' => new RollingDate(RollingDate::T_TODAY),
],
];
}

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class ResultAggregatorTest extends AbstractAggregatorTest

View File

@@ -11,7 +11,6 @@ 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\ScopeAggregator;
@@ -19,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class ScopeAggregatorTest extends AbstractAggregatorTest
@@ -54,7 +54,7 @@ final class ScopeAggregatorTest extends AbstractAggregatorTest
$em->createQueryBuilder()
->select('count(acp.id)')
->from(AccompanyingPeriod::class, 'acp')
->join('acp.works', 'acpw')
->join('acp.works', 'acpw'),
];
}
}

View File

@@ -17,6 +17,7 @@ use Chill\PersonBundle\Export\Export\CountAccompanyingCourse;
/**
* @internal
*
* @coversNothing
*/
final class CountAccompanyingCourseTest extends AbstractExportTest

View File

@@ -17,6 +17,7 @@ use Chill\PersonBundle\Export\Export\CountAccompanyingPeriodWork;
/**
* @internal
*
* @coversNothing
*/
final class CountAccompanyingPeriodWorkTest extends AbstractExportTest

View File

@@ -18,13 +18,11 @@ use Chill\PersonBundle\Export\Export\CountPerson;
* Test CountPerson export.
*
* @internal
*
* @coversNothing
*/
final class CountPersonTest extends AbstractExportTest
{
/**
* @var
*/
private ?object $export = null;
protected function setUp(): void

View File

@@ -12,7 +12,6 @@ declare(strict_types=1);
namespace Chill\PersonBundle\Tests\Export\Export;
use Chill\MainBundle\Entity\Center;
use Chill\MainBundle\Export\Formatter\SpreadsheetListFormatter;
use Chill\MainBundle\Repository\CenterRepositoryInterface;
use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\PersonBundle\Export\Export\ListAccompanyingPeriod;
@@ -21,6 +20,7 @@ use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
/**
* @internal
*
* @coversNothing
*/
class ListAccompanyingPeriodTest extends KernelTestCase
@@ -42,7 +42,7 @@ class ListAccompanyingPeriodTest extends KernelTestCase
{
$centers = $this->centerRepository->findAll();
$query = $this->listAccompanyingPeriod->initiateQuery([], array_map(fn (Center $c) => ['center' => $c ], $centers), $exportOpts = ['calc_date' => new RollingDate(RollingDate::T_TODAY)]);
$query = $this->listAccompanyingPeriod->initiateQuery([], array_map(fn (Center $c) => ['center' => $c], $centers), $exportOpts = ['calc_date' => new RollingDate(RollingDate::T_TODAY)]);
$query->setMaxResults(1);

View File

@@ -20,6 +20,7 @@ use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
/**
* @internal
*
* @coversNothing
*/
class ListAccompanyingPeriodWorkTest extends KernelTestCase

View File

@@ -20,6 +20,7 @@ use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
/**
* @internal
*
* @coversNothing
*/
class ListEvaluationTest extends KernelTestCase

View File

@@ -11,16 +11,15 @@ declare(strict_types=1);
namespace Chill\PersonBundle\Tests\Export\Export;
use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Test\Export\AbstractExportTest;
use Chill\PersonBundle\Export\Export\ListPerson;
use DateTime;
use Prophecy\PhpUnit\ProphecyTrait;
/**
* Test the export "ListPerson".
*
* @internal
*
* @coversNothing
*/
final class ListPersonTest extends AbstractExportTest
@@ -58,7 +57,7 @@ final class ListPersonTest extends AbstractExportTest
['fields' => ['id', 'nationality']],
['fields' => ['id', 'countryOfBirth']],
] as $base) {
yield [...$base, 'address_date' => new \DateTimeImmutable('today') ];
yield [...$base, 'address_date' => new \DateTimeImmutable('today')];
}
}

View File

@@ -14,10 +14,10 @@ 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
@@ -39,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')],
];
}

View File

@@ -15,11 +15,11 @@ use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Test\Export\AbstractFilterTest;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
use Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters\ActiveOnDateFilter;
use DateTime;
use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class ActiveOnDateFilterTest extends AbstractFilterTest

View File

@@ -15,11 +15,11 @@ use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Test\Export\AbstractFilterTest;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
use Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters\ActiveOneDayBetweenDatesFilter;
use DateTime;
use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class ActiveOneDayBetweenDatesFilterTest extends AbstractFilterTest

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class AdministrativeLocationFilterTest extends AbstractFilterTest

View File

@@ -19,6 +19,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class ClosingMotiveFilterTest extends AbstractFilterTest

View File

@@ -17,6 +17,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class ConfidentialFilterTest extends AbstractFilterTest

View File

@@ -17,6 +17,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class EmergencyFilterTest extends AbstractFilterTest

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class EvaluationFilterTest extends AbstractFilterTest

View File

@@ -11,17 +11,16 @@ declare(strict_types=1);
namespace Chill\PersonBundle\Tests\Export\Filter\AccompanyingCourseFilters;
use Chill\MainBundle\Entity\GeographicalUnit;
use Chill\MainBundle\Repository\GeographicalUnitRepositoryInterface;
use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Test\Export\AbstractFilterTest;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
use Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters\GeographicalUnitStatFilter;
use DateTime;
use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class GeographicalUnitStatFilterTest extends AbstractFilterTest
@@ -50,7 +49,7 @@ final class GeographicalUnitStatFilterTest extends AbstractFilterTest
return [
[
'date_calc' => new RollingDate(RollingDate::T_TODAY),
'units' => $units
'units' => $units,
],
];
}

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class IntensityFilterTest extends AbstractFilterTest

View File

@@ -15,11 +15,11 @@ use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Test\Export\AbstractFilterTest;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
use Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters\OpenBetweenDatesFilter;
use DateTime;
use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class OpenBetweenDatesFilterTest extends AbstractFilterTest

View File

@@ -19,6 +19,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class OriginFilterTest extends AbstractFilterTest

View File

@@ -15,13 +15,12 @@ use Chill\MainBundle\Entity\User;
use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Test\Export\AbstractFilterTest;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
use Chill\PersonBundle\Entity\Person\PersonCenterHistory;
use Chill\PersonBundle\Export\Export\CountAccompanyingPeriodWork;
use Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters\ReferrerFilter;
use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class ReferrerFilterTest extends AbstractFilterTest
@@ -82,6 +81,5 @@ final class ReferrerFilterTest extends AbstractFilterTest
$qb->select('COUNT(DISTINCT acpw.id) as export_result');
yield $qb;
}
}

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class RequestorFilterTest extends AbstractFilterTest

View File

@@ -19,6 +19,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class SocialActionFilterTest extends AbstractFilterTest

View File

@@ -20,6 +20,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class SocialIssueFilterTest extends AbstractFilterTest

View File

@@ -19,6 +19,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class StepFilterTest extends AbstractFilterTest
@@ -46,7 +47,7 @@ final class StepFilterTest extends AbstractFilterTest
['accepted_steps_multi' => [AccompanyingPeriod::STEP_CONFIRMED_INACTIVE_SHORT]],
['accepted_steps_multi' => [AccompanyingPeriod::STEP_CLOSED]],
] as $d) {
yield ['calc_date' => new RollingDate(RollingDate::T_TODAY), ...$d] ;
yield ['calc_date' => new RollingDate(RollingDate::T_TODAY), ...$d];
}
}

View File

@@ -21,6 +21,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class UserJobFilterTest extends AbstractFilterTest
@@ -43,13 +44,13 @@ final class UserJobFilterTest extends AbstractFilterTest
{
self::bootKernel();
$jobs = self::$container->get(EntityManagerInterface::class)
->createQuery('SELECT j FROM ' . UserJob::class . ' j')
->createQuery('SELECT j FROM '.UserJob::class.' j')
->setMaxResults(1)
->getResult();
yield [
'jobs' => new ArrayCollection($jobs),
'date_calc' => new RollingDate(RollingDate::T_TODAY)
'date_calc' => new RollingDate(RollingDate::T_TODAY),
];
}

View File

@@ -21,6 +21,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class UserScopeFilterTest extends AbstractFilterTest
@@ -43,7 +44,7 @@ final class UserScopeFilterTest extends AbstractFilterTest
{
self::bootKernel();
$scopes = self::$container->get(EntityManagerInterface::class)
->createQuery('SELECT s FROM ' . Scope::class . ' s')
->createQuery('SELECT s FROM '.Scope::class.' s')
->setMaxResults(1)
->getResult();
@@ -51,7 +52,7 @@ final class UserScopeFilterTest extends AbstractFilterTest
[
'date_calc' => new RollingDate(RollingDate::T_TODAY),
'scopes' => new ArrayCollection($scopes),
]
],
];
}

View File

@@ -19,6 +19,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class EvaluationTypeFilterTest extends AbstractFilterTest

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class MaxDateFilterTest extends AbstractFilterTest

View File

@@ -16,11 +16,11 @@ use Chill\MainBundle\Test\Export\AbstractFilterTest;
use Chill\PersonBundle\Entity\Household\Household;
use Chill\PersonBundle\Entity\Household\HouseholdCompositionType;
use Chill\PersonBundle\Export\Filter\HouseholdFilters\CompositionFilter;
use DateTimeImmutable;
use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class CompositionFilterTest extends AbstractFilterTest
@@ -77,7 +77,7 @@ final class CompositionFilterTest extends AbstractFilterTest
->join('acppart.accompanyingPeriod', 'acp')
->andWhere('acppart.startDate != acppart.endDate OR acppart.endDate IS NULL')
->andWhere('hmember.startDate <= :count_household_at_date AND (hmember.endDate IS NULL OR hmember.endDate > :count_household_at_date)')
->setParameter('count_household_at_date', new DateTimeImmutable('today'));
->setParameter('count_household_at_date', new \DateTimeImmutable('today'));
$qb
->select('COUNT(DISTINCT household.id) AS household_export_result')

View File

@@ -15,11 +15,11 @@ use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Test\Export\AbstractFilterTest;
use Chill\PersonBundle\Entity\Person;
use Chill\PersonBundle\Export\Filter\PersonFilters\AgeFilter;
use DateTime;
use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class AgeFilterTest extends AbstractFilterTest

View File

@@ -15,11 +15,11 @@ use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Test\Export\AbstractFilterTest;
use Chill\PersonBundle\Entity\Person;
use Chill\PersonBundle\Export\Filter\PersonFilters\BirthdateFilter;
use DateTime;
use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class BirthdateFilterTest extends AbstractFilterTest

View File

@@ -15,11 +15,11 @@ use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Test\Export\AbstractFilterTest;
use Chill\PersonBundle\Entity\Person;
use Chill\PersonBundle\Export\Filter\PersonFilters\DeadOrAliveFilter;
use DateTime;
use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class DeadOrAliveFilterTest extends AbstractFilterTest

View File

@@ -15,11 +15,11 @@ use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Test\Export\AbstractFilterTest;
use Chill\PersonBundle\Entity\Person;
use Chill\PersonBundle\Export\Filter\PersonFilters\DeathdateFilter;
use DateTime;
use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class DeathdateFilterTest extends AbstractFilterTest

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class GenderFilterTest extends AbstractFilterTest
@@ -61,7 +62,7 @@ final class GenderFilterTest extends AbstractFilterTest
return [
$em->createQueryBuilder()
->select('person.firstName')
->from(Person::class, 'person')
->from(Person::class, 'person'),
];
}
}

View File

@@ -11,16 +11,15 @@ declare(strict_types=1);
namespace Chill\PersonBundle\Tests\Export\Filter\PersonFilters;
use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Test\Export\AbstractFilterTest;
use Chill\PersonBundle\Entity\MaritalStatus;
use Chill\PersonBundle\Entity\Person;
use Chill\PersonBundle\Export\Filter\PersonFilters\MaritalStatusFilter;
use DateTime;
use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class MaritalStatusFilterTest extends AbstractFilterTest

View File

@@ -19,6 +19,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class NationalityFilterTest extends AbstractFilterTest

View File

@@ -17,12 +17,12 @@ use Chill\PersonBundle\Entity\Person;
use Chill\PersonBundle\Entity\Person\ResidentialAddress;
use Chill\PersonBundle\Export\Filter\PersonFilters\ResidentialAddressAtThirdpartyFilter;
use Chill\ThirdPartyBundle\Entity\ThirdPartyCategory;
use DateTime;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\Query\Expr;
/**
* @internal
*
* @coversNothing
*/
final class ResidentialAddressAtThirdpartyFilterTest extends AbstractFilterTest

View File

@@ -20,6 +20,7 @@ use Doctrine\ORM\Query\Expr;
/**
* @internal
*
* @coversNothing
*/
final class ResidentialAddressAtUserFilterTest extends AbstractFilterTest
@@ -41,7 +42,7 @@ final class ResidentialAddressAtUserFilterTest extends AbstractFilterTest
public function getFormData(): array
{
return [
['date_calc' => new RollingDate(RollingDate::T_TODAY)]
['date_calc' => new RollingDate(RollingDate::T_TODAY)],
];
}

View File

@@ -12,7 +12,6 @@ declare(strict_types=1);
namespace Chill\PersonBundle\Tests\Export\Filter\SocialWorkFilters;
use Chill\MainBundle\Entity\UserJob;
use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Test\Export\AbstractFilterTest;
use Chill\PersonBundle\Entity\AccompanyingPeriod\AccompanyingPeriodWork;
use Chill\PersonBundle\Export\Filter\SocialWorkFilters\JobFilter;
@@ -21,6 +20,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class JobFilterTest extends AbstractFilterTest
@@ -44,14 +44,14 @@ final class JobFilterTest extends AbstractFilterTest
self::bootKernel();
$em = self::$container->get(EntityManagerInterface::class);
$jobs = $em->createQuery('SELECT j FROM ' . UserJob::class . ' j')
$jobs = $em->createQuery('SELECT j FROM '.UserJob::class.' j')
->setMaxResults(1)
->getResult();
return [
[
'job' => new ArrayCollection($jobs),
]
],
];
}

View File

@@ -20,6 +20,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class ReferrerFilterTest extends AbstractFilterTest
@@ -54,7 +55,7 @@ final class ReferrerFilterTest extends AbstractFilterTest
$data[] = [
'accepted_agents' => $u,
'agent_at' => new RollingDate(RollingDate::T_TODAY)
'agent_at' => new RollingDate(RollingDate::T_TODAY),
];
}

View File

@@ -12,7 +12,6 @@ declare(strict_types=1);
namespace Chill\PersonBundle\Tests\Export\Filter\SocialWorkFilters;
use Chill\MainBundle\Entity\Scope;
use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Test\Export\AbstractFilterTest;
use Chill\PersonBundle\Entity\AccompanyingPeriod\AccompanyingPeriodWork;
use Chill\PersonBundle\Export\Filter\SocialWorkFilters\ScopeFilter;
@@ -20,6 +19,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class ScopeFilterTest extends AbstractFilterTest
@@ -43,14 +43,14 @@ final class ScopeFilterTest extends AbstractFilterTest
self::bootKernel();
$em = self::$container->get(EntityManagerInterface::class);
$scopes = $em->createQuery('SELECT s FROM ' . Scope::class . ' s')
$scopes = $em->createQuery('SELECT s FROM '.Scope::class.' s')
->setMaxResults(1)
->getResult();
return [
[
'scope' => $scopes,
]
],
];
}