mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 03:23:48 +00:00
Make all existing export test data provider static
This commit is contained in:
@@ -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'],
|
||||
|
@@ -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'],
|
||||
|
@@ -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'],
|
||||
|
@@ -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 [
|
||||
[
|
||||
|
@@ -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,
|
||||
|
@@ -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'],
|
||||
|
@@ -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'],
|
||||
|
@@ -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'],
|
||||
|
@@ -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 [
|
||||
[
|
||||
|
@@ -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'],
|
||||
|
@@ -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'],
|
||||
|
Reference in New Issue
Block a user