Make all existing export test data provider static

This commit is contained in:
2024-02-16 21:52:47 +01:00
parent 07f03ab715
commit bb4b7e9735
31 changed files with 61 additions and 62 deletions

View File

@@ -35,14 +35,14 @@ final class AvgActivityDurationTest extends AbstractExportTest
yield new AvgActivityDuration($activityRepository, $this->getParameters(false));
}
public function getFormData(): array
public static function getFormData(): array
{
return [
[],
];
}
public function getModifiersCombination(): array
public static function getModifiersCombination(): array
{
return [
['activity'],

View File

@@ -35,14 +35,14 @@ final class AvgActivityVisitDurationTest extends AbstractExportTest
yield new AvgActivityVisitDuration($em, $this->getParameters(false));
}
public function getFormData(): array
public static function getFormData(): array
{
return [
[],
];
}
public function getModifiersCombination(): array
public static function getModifiersCombination(): array
{
return [
['activity'],

View File

@@ -35,14 +35,14 @@ final class CountActivityTest extends AbstractExportTest
yield new CountActivity($em, $this->getParameters(false));
}
public function getFormData(): array
public static function getFormData(): array
{
return [
[],
];
}
public function getModifiersCombination(): array
public static function getModifiersCombination(): array
{
return [
['activity'],

View File

@@ -38,14 +38,14 @@ class CountHouseholdOnActivityTest extends AbstractExportTest
yield new CountHouseholdOnActivity($this->entityManager, $this->getParameters(false));
}
public function getFormData()
public static function getFormData(): array
{
return [
[],
];
}
public function getModifiersCombination()
public static function getModifiersCombination(): array
{
return [
[

View File

@@ -37,12 +37,12 @@ class CountPersonsOnActivityTest extends AbstractExportTest
yield new CountPersonsOnActivity($em, $this->getParameters(false));
}
public function getFormData()
public static function getFormData(): array
{
return [[]];
}
public function getModifiersCombination()
public static function getModifiersCombination(): array
{
return [[
Declarations::ACTIVITY,

View File

@@ -35,14 +35,14 @@ final class SumActivityDurationTest extends AbstractExportTest
yield new SumActivityDuration($em, $this->getParameters(false));
}
public function getFormData(): array
public static function getFormData(): array
{
return [
[],
];
}
public function getModifiersCombination(): array
public static function getModifiersCombination(): array
{
return [
['activity'],

View File

@@ -39,14 +39,14 @@ final class SumActivityVisitDurationTest extends AbstractExportTest
yield new SumActivityVisitDuration($em, $this->getParameters(false));
}
public function getFormData(): array
public static function getFormData(): array
{
return [
[],
];
}
public function getModifiersCombination(): array
public static function getModifiersCombination(): array
{
return [
['activity'],

View File

@@ -35,14 +35,14 @@ final class CountActivityTest extends AbstractExportTest
yield new CountActivity($activityRepository, $this->getParameters(false));
}
public function getFormData(): array
public static function getFormData(): array
{
return [
[],
];
}
public function getModifiersCombination(): array
public static function getModifiersCombination(): array
{
return [
['activity'],

View File

@@ -38,14 +38,14 @@ class CountHouseholdOnActivityTest extends AbstractExportTest
yield new CountHouseholdOnActivity($this->activityRepository, $this->getParameters(false));
}
public function getFormData()
public static function getFormData(): array
{
return [
[],
];
}
public function getModifiersCombination()
public static function getModifiersCombination(): array
{
return [
[

View File

@@ -67,7 +67,7 @@ final class ListActivityTest extends AbstractExportTest
);
}
public function getFormData()
public static function getFormData(): array
{
return [
['fields' => [
@@ -89,7 +89,7 @@ final class ListActivityTest extends AbstractExportTest
];
}
public function getModifiersCombination()
public static function getModifiersCombination(): array
{
return [
['activity'],

View File

@@ -38,14 +38,14 @@ final class StatActivityDurationTest extends AbstractExportTest
yield new StatActivityDuration($activityRepository, $this->getParameters(false), 'sum');
}
public function getFormData(): array
public static function getFormData(): array
{
return [
[],
];
}
public function getModifiersCombination(): array
public static function getModifiersCombination(): array
{
return [
['activity'],