complere story 11.1 with qa tests
This commit is contained in:
@@ -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(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user