From ac592920e740820115ff9e08e4e10ffd13a8d0ad Mon Sep 17 00:00:00 2001 From: philipp lang Date: Mon, 16 Jun 2025 23:38:56 +0200 Subject: [PATCH] Mod from and to in FormFactory --- database/factories/Form/Models/FormFactory.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/database/factories/Form/Models/FormFactory.php b/database/factories/Form/Models/FormFactory.php index 0bbfc1f0..339f3f14 100644 --- a/database/factories/Form/Models/FormFactory.php +++ b/database/factories/Form/Models/FormFactory.php @@ -47,8 +47,8 @@ class FormFactory extends Factory 'description' => EditorRequestFactory::new()->toData(), 'excerpt' => $this->faker->words(10, true), 'config' => ['sections' => []], - 'from' => $this->faker->dateTimeBetween('+1 week', '+4 weeks')->format('Y-m-d'), - 'to' => $this->faker->dateTimeBetween('+1 week', '+4 weeks')->format('Y-m-d'), + 'from' => $this->faker->dateTimeBetween('+1 week', '+3 weeks')->format('Y-m-d'), + 'to' => $this->faker->dateTimeBetween('+4 week', '+6 weeks')->format('Y-m-d'), 'registration_from' => $this->faker->dateTimeBetween(Carbon::parse('-2 weeks'), now())->format('Y-m-d H:i:s'), 'registration_until' => $this->faker->dateTimeBetween(now(), Carbon::parse('+2 weeks'))->format('Y-m-d H:i:s'), 'mail_top' => EditorRequestFactory::new()->toData(), @@ -65,7 +65,7 @@ class FormFactory extends Factory */ public function sections(array $sections): self { - return $this->state(['config' => ['sections' => array_map(fn ($section) => $section->create(), $sections)]]); + return $this->state(['config' => ['sections' => array_map(fn($section) => $section->create(), $sections)]]); } /**