test: widen DatacenterFactory code space (fix faker unique() pool exhaustion)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
feat/portal-design
nexxo 2026-07-25 14:23:49 +02:00
parent 54d9a05235
commit b44d25404d
1 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,8 @@ class DatacenterFactory extends Factory
public function definition(): array public function definition(): array
{ {
return [ return [
'code' => $this->faker->unique()->lexify('dc?'), // Wide unique space — 'dc?' (26 values) exhausted across a full suite run.
'code' => 'dc'.$this->faker->unique()->numberBetween(100, 999999),
'name' => $this->faker->city(), 'name' => $this->faker->city(),
'location' => 'DE', 'location' => 'DE',
'active' => true, 'active' => true,