Update test methods to static in AbstractFilterTest

The methods getFormData() and getQueryBuilders() across multiple test classes have been updated to static methods. This refactoring is part of a broader effort to improve code structure and readability. A rector rule has been employed to assist in the systematic update of these existing methods.
This commit is contained in:
2024-02-14 22:35:15 +01:00
parent 1f460916b6
commit 35d55cced4
67 changed files with 139 additions and 324 deletions

View File

@@ -38,7 +38,7 @@ final class ReportDateFilterTest extends AbstractFilterTest
return $this->filter;
}
public function getFormData(): array
public static function getFormData(): array
{
return [
[
@@ -48,10 +48,9 @@ final class ReportDateFilterTest extends AbstractFilterTest
];
}
public function getQueryBuilders(): array
public static function getQueryBuilders(): iterable
{
self::bootKernel();
$em = self::getContainer()->get(EntityManagerInterface::class);
return [