From f30060e63fdc8d9c334c79ef4c99ec7bd3ae56d0 Mon Sep 17 00:00:00 2001 From: Andy Ford Date: Sat, 11 Nov 2023 19:25:38 +0000 Subject: [PATCH] test: make user cids unique in factory --- database/factories/User/UserFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/factories/User/UserFactory.php b/database/factories/User/UserFactory.php index 041aa791f..431dab354 100644 --- a/database/factories/User/UserFactory.php +++ b/database/factories/User/UserFactory.php @@ -14,7 +14,7 @@ class UserFactory extends Factory public function definition() { return [ - 'id' => $this->faker->numberBetween(800000, 1900000), + 'id' => $this->faker->unique()->numberBetween(800000, 1900000), ]; } }