simple DataFactory

This commit is contained in:
TimmensOne
2023-03-24 14:11:09 +01:00
parent d81439a4f7
commit 68735a3af7
3 changed files with 24 additions and 32 deletions

View File

@@ -17,14 +17,14 @@ class DeviceFactory extends Factory
public function definition(): array
{
return [
'device_id' => '1',
'title' => 'Test Device One',
'device_type' => 'type1',
'description' => 'des',
'accessories' => 'acc',
'rz_username_buyer' => 'rzb',
'serial_number' => '123',
'image_url' => 'www.url.de'
'device_id' => $this->faker->randomDigitNotNull(),
'title' => $this->faker->word(),
'device_type' => $this->faker->domainWord(),
'description' => $this->faker->sentence(),
'accessories' => $this->faker->word(),
'rz_username_buyer' => $this->faker->name(),
'serial_number' => $this->faker->creditCardNumber(),
'image_url' => $this->faker->url()
];
}
}