complete story 8.6 with qa tests

This commit is contained in:
Naser Mansour
2026-01-02 22:32:19 +02:00
parent b7a84f83a5
commit 91be71fa44
6 changed files with 199 additions and 0 deletions
@@ -171,6 +171,20 @@ it('does not send 24h reminder for pending consultation', function () {
Notification::assertNotSentTo($consultation->user, ConsultationReminder24h::class);
});
it('does not send 24h reminder for completed consultation', function () {
Notification::fake();
$consultation = Consultation::factory()->completed()->create([
'booking_date' => now()->addHours(24)->toDateString(),
'booking_time' => now()->addHours(24)->format('H:i:s'),
]);
$this->artisan('reminders:send-24h')
->assertSuccessful();
Notification::assertNotSentTo($consultation->user, ConsultationReminder24h::class);
});
it('does not send 2h reminder for rejected consultation', function () {
Notification::fake();