From d0f23eb6b1f84c7520ffee802f449cba0d6cd777 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Sun, 18 Feb 2024 23:17:33 +0100 Subject: [PATCH] fixup! Make all existing export test data provider static --- .../ChillPersonBundle/Tests/Export/Export/ListPersonTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Export/ListPersonTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Export/ListPersonTest.php index 27fc2c71a..88b192f51 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Export/ListPersonTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Export/ListPersonTest.php @@ -77,6 +77,7 @@ final class ListPersonTest extends AbstractExportTest public static function getFormData(): array { + $data = []; foreach ([ ['fields' => ['id', 'firstName', 'lastName']], ['fields' => ['id', 'birthdate', 'gender', 'memo', 'email', 'phonenumber']], @@ -84,8 +85,10 @@ final class ListPersonTest extends AbstractExportTest ['fields' => ['id', 'nationality']], ['fields' => ['id', 'countryOfBirth']], ] as $base) { - yield [...$base, 'address_date' => new \DateTimeImmutable('today')]; + $data[] = [...$base, 'address_date' => new \DateTimeImmutable('today')]; } + + return $data; } public static function getModifiersCombination(): array