A free open source IT asset/license management system
Add failing conditions
Marcus Moore047a1197be34
diff --git a/tests/Feature/Notifications/Email/BulkCheckoutEmailTest.php b/tests/Feature/Notifications/Email/BulkCheckoutEmailTest.phpindex 019695c158..9fabf5771b 100644--- a/tests/Feature/Notifications/Email/BulkCheckoutEmailTest.php+++ b/tests/Feature/Notifications/Email/BulkCheckoutEmailTest.php@@ -22,7 +22,7 @@ class BulkCheckoutEmailTest extends TestCasepublic function test_email_is_sent(){- // $this->markTestIncomplete();+ $this->settings->enableAdminCC('[email protected]');Mail::fake();@@ -43,10 +43,16 @@ class BulkCheckoutEmailTest extends TestCaseMail::assertNotSent(CheckoutAssetNotification::class);- Mail::assertSent(BulkAssetCheckoutMail::class, 1);+ Mail::assertSent(BulkAssetCheckoutMail::class, 2);+Mail::assertSent(BulkAssetCheckoutMail::class, function (BulkAssetCheckoutMail $mail) {// @todo: assert contentsreturn $mail->hasTo('[email protected]');});++ Mail::assertSent(BulkAssetCheckoutMail::class, function (BulkAssetCheckoutMail $mail) {+ // @todo: assert contents+ return $mail->hasTo('[email protected]');+ });}}