From b9a3d81f8ddde083ea4cfba5042b2c4796adebc6 Mon Sep 17 00:00:00 2001 From: Fenrikur <3359222+Fenrikur@users.noreply.github.com> Date: Wed, 7 Feb 2024 22:33:50 +0100 Subject: [PATCH] fix(test): ensure uniqueness on fake invite codes --- database/factories/ApplicationFactory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/factories/ApplicationFactory.php b/database/factories/ApplicationFactory.php index c4d4f43..50e4bd7 100644 --- a/database/factories/ApplicationFactory.php +++ b/database/factories/ApplicationFactory.php @@ -20,8 +20,8 @@ public function definition(): array 'display_name' => $this->faker->name(), 'website' => $this->faker->word(), 'table_number' => $this->faker->word(), - 'invite_code_shares' => $this->faker->word(), - 'invite_code_assistants' => $this->faker->word(), + 'invite_code_shares' => $this->faker->unique()->bothify('?????-#####'), + 'invite_code_assistants' => $this->faker->unique()->bothify('?????-#####'), 'merchandise' => $this->faker->word(), 'wanted_neighbors' => $this->faker->text(), 'comment' => $this->faker->text(),