Merge pull request #14341 from marcusmoore/chore/sc-24900

Generate unique department names in factory
This commit is contained in:
snipe 2024-02-28 07:07:45 +00:00 committed by GitHub
commit 369ecfa490
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,7 +24,7 @@ class DepartmentFactory extends Factory
public function definition()
{
return [
'name' => $this->faker->word() . ' Department',
'name' => $this->faker->unique()->word() . ' Department',
'user_id' => User::factory()->superuser(),
'location_id' => Location::factory(),
];