complere story 11.1 with qa tests

This commit is contained in:
Naser Mansour
2026-01-03 19:06:21 +02:00
parent 393acde340
commit f32ea2b68d
6 changed files with 444 additions and 23 deletions
@@ -121,4 +121,17 @@ class ConsultationFactory extends Factory
'status' => ConsultationStatus::Rejected,
]);
}
/**
* Create a guest consultation (no user account).
*/
public function guest(): static
{
return $this->state(fn (array $attributes) => [
'user_id' => null,
'guest_name' => fake()->name(),
'guest_email' => fake()->unique()->safeEmail(),
'guest_phone' => fake()->phoneNumber(),
]);
}
}