A free open source IT asset/license management system
fix tests
Godfrey Mf2ec7f29753f
diff --git a/tests/Feature/Checkouts/Ui/BulkAssetCheckoutTest.php b/tests/Feature/Checkouts/Ui/BulkAssetCheckoutTest.phpindex f05c4389e6..c525f763ad 100644--- a/tests/Feature/Checkouts/Ui/BulkAssetCheckoutTest.php+++ b/tests/Feature/Checkouts/Ui/BulkAssetCheckoutTest.php@@ -58,7 +58,7 @@ class BulkAssetCheckoutTest extends TestCase$this->assertHasTheseActionLogs($asset, ['create', 'checkout']); //Note: '$this' gets auto-bound in closures, so this does work.});- Mail::assertSent(CheckoutAssetMail::class, 2);+ Mail::assertSent(CheckoutAssetMail::class, 4);Mail::assertSent(CheckoutAssetMail::class, function (CheckoutAssetMail $mail) {return $mail->hasTo('[email protected]');});diff --git a/tests/Feature/Notifications/Email/EmailNotificationsToAdminAlertEmailUponCheckinTest.php b/tests/Feature/Notifications/Email/EmailNotificationsToAdminAlertEmailUponCheckinTest.phpindex 1bdbf0b673..cc9a6cb244 100644--- a/tests/Feature/Notifications/Email/EmailNotificationsToAdminAlertEmailUponCheckinTest.php+++ b/tests/Feature/Notifications/Email/EmailNotificationsToAdminAlertEmailUponCheckinTest.php@@ -51,8 +51,12 @@ class EmailNotificationsToAdminAlertEmailUponCheckinTest extends TestCase$this->fireCheckInEvent($this->asset, $this->user);+ Mail::assertSentCount(2);Mail::assertSent(CheckinAssetMail::class, function ($mail) {- return $mail->hasTo($this->user->email) && $mail->hasCc('[email protected]');+ return $mail->hasTo($this->user->email);+ });+ Mail::assertSent(CheckinAssetMail::class, function ($mail) {+ return $mail->hasTo('[email protected]');});}diff --git a/tests/Feature/Notifications/Email/EmailNotificationsToAdminAlertEmailUponCheckoutTest.php b/tests/Feature/Notifications/Email/EmailNotificationsToAdminAlertEmailUponCheckoutTest.phpindex d881ae7dab..3da0b21621 100644--- a/tests/Feature/Notifications/Email/EmailNotificationsToAdminAlertEmailUponCheckoutTest.php+++ b/tests/Feature/Notifications/Email/EmailNotificationsToAdminAlertEmailUponCheckoutTest.php@@ -48,7 +48,7 @@ class EmailNotificationsToAdminAlertEmailUponCheckoutTest extends TestCase$this->fireCheckoutEvent();Mail::assertSent(CheckoutAssetMail::class, function (CheckoutAssetMail $mail) {- return $mail->hasCc('[email protected]');+ return $mail->hasTo('[email protected]');});}