mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Merge pull request #14341 from marcusmoore/chore/sc-24900
Generate unique department names in factory
This commit is contained in:
commit
369ecfa490
|
@ -24,7 +24,7 @@ class DepartmentFactory extends Factory
|
||||||
public function definition()
|
public function definition()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'name' => $this->faker->word() . ' Department',
|
'name' => $this->faker->unique()->word() . ' Department',
|
||||||
'user_id' => User::factory()->superuser(),
|
'user_id' => User::factory()->superuser(),
|
||||||
'location_id' => Location::factory(),
|
'location_id' => Location::factory(),
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue