refactor: improve address generation in Company and Student data factories

This commit is contained in:
Veronika Fehérvíziová
2025-12-02 19:30:54 +01:00
parent 1d2016c011
commit 9de30a7df1
2 changed files with 2 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ class CompanyFactory extends Factory
{ {
return [ return [
'name' => fake()->company(), 'name' => fake()->company(),
'address' => fake()->address(), 'address' => fake()->streetAddress() . ", " . fake()->city() . ", " . fake()->postcode(),
'ico' => fake()->numberBetween(111111, 999999), 'ico' => fake()->numberBetween(111111, 999999),
'contact' => 0, 'contact' => 0,
'hiring' => fake()->boolean(), 'hiring' => fake()->boolean(),

View File

@@ -18,7 +18,7 @@ class StudentDataFactory extends Factory
{ {
return [ return [
'user_id' => 0, 'user_id' => 0,
'address' => fake()->address(), 'address' => fake()->streetAddress() . ", " . fake()->city() . ", " . fake()->postcode(),
'personal_email' => fake()->safeEmail(), 'personal_email' => fake()->safeEmail(),
'study_field' => fake()->randomElement(["AI22m", "AI22b"]), 'study_field' => fake()->randomElement(["AI22m", "AI22b"]),
]; ];