Skip to content

Commit

Permalink
fix(test): ensure uniqueness on fake invite codes
Browse files Browse the repository at this point in the history
  • Loading branch information
Fenrikur committed Feb 7, 2024
1 parent b2e7069 commit b9a3d81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database/factories/ApplicationFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit b9a3d81

Please sign in to comment.