From 47f287c0312b2337985a445bb965944a6b6975a8 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Tue, 20 May 2025 16:25:22 -0700 Subject: [PATCH] Fix assertion --- .../Email/EmailNotificationsUponCheckinTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/Feature/Notifications/Email/EmailNotificationsUponCheckinTest.php b/tests/Feature/Notifications/Email/EmailNotificationsUponCheckinTest.php index d46065da58..4497533f63 100644 --- a/tests/Feature/Notifications/Email/EmailNotificationsUponCheckinTest.php +++ b/tests/Feature/Notifications/Email/EmailNotificationsUponCheckinTest.php @@ -108,10 +108,12 @@ class EmailNotificationsUponCheckinTest extends TestCase $user = User::factory()->create(); $asset = Asset::factory()->assignedToUser($user)->create(); + $asset->model->category->update(['checkin_email' => true]); + $this->fireCheckInEvent($asset, $user); - Mail::assertSent(CheckinAssetMail::class, function ($mail) use ($user) { - return $mail->hasTo($user->email); + Mail::assertSent(CheckinAssetMail::class, function (CheckinAssetMail $mail) use ($user) { + return $mail->hasTo($user->email) && $mail->hasCc('cc@example.com'); }); }