mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-28 17:44:58 +00:00
upgrade phpunit: make data provider static
This commit is contained in:
@@ -38,7 +38,7 @@ final class ActiveOnDateFilterTest extends AbstractFilterTest
|
||||
return $this->filter;
|
||||
}
|
||||
|
||||
public function getFormData(): array
|
||||
public static function getFormData(): array
|
||||
{
|
||||
return [
|
||||
[
|
||||
@@ -47,7 +47,7 @@ final class ActiveOnDateFilterTest extends AbstractFilterTest
|
||||
];
|
||||
}
|
||||
|
||||
public function getQueryBuilders(): array
|
||||
public static function getQueryBuilders(): array
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
|
@@ -90,10 +90,11 @@ final class FilterListAccompanyingPeriodHelperTest extends KernelTestCase
|
||||
self::assertIsArray($result);
|
||||
}
|
||||
|
||||
public function dataProviderTestAddFilterAccompanyingPeriod(): iterable
|
||||
public static function dataProviderTestAddFilterAccompanyingPeriod(): iterable
|
||||
{
|
||||
self::setUp();
|
||||
$qb = $this->entityManager->createQueryBuilder();
|
||||
self::bootKernel();
|
||||
$entityManager = self::getContainer()->get(EntityManagerInterface::class);
|
||||
$qb = $entityManager->createQueryBuilder();
|
||||
|
||||
$qb
|
||||
->select('acp.id')
|
||||
|
Reference in New Issue
Block a user