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