Merge pull request #15722 from Godmartinz/fix_component_factory

Fixed Component Factory: use manufacturer factory for `manufactuer_id`
This commit is contained in:
snipe 2024-10-24 01:12:11 +01:00 committed by GitHub
commit 5509d756b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,7 +42,7 @@ class ComponentFactory extends Factory
'purchase_cost' => $this->faker->randomFloat(2), 'purchase_cost' => $this->faker->randomFloat(2),
'min_amt' => $this->faker->numberBetween($min = 1, $max = 2), 'min_amt' => $this->faker->numberBetween($min = 1, $max = 2),
'company_id' => Company::factory(), 'company_id' => Company::factory(),
'manufacturer_id' => $this->faker->numberBetween(1, 5), 'manufacturer_id' => Manufacturer::factory(),
'supplier_id' => Supplier::factory(), 'supplier_id' => Supplier::factory(),
'model_number' => $this->faker->numberBetween(1000000, 50000000), 'model_number' => $this->faker->numberBetween(1000000, 50000000),
]; ];