Skip to content

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.php
index 019695c158..9fabf5771b 100644
--- a/tests/Feature/Notifications/Email/BulkCheckoutEmailTest.php
+++ b/tests/Feature/Notifications/Email/BulkCheckoutEmailTest.php
@@ -22,7 +22,7 @@ class BulkCheckoutEmailTest extends TestCase
public function test_email_is_sent()
{
- // $this->markTestIncomplete();
+ $this->settings->enableAdminCC('[email protected]');
Mail::fake();
@@ -43,10 +43,16 @@ class BulkCheckoutEmailTest extends TestCase
Mail::assertNotSent(CheckoutAssetNotification::class);
- Mail::assertSent(BulkAssetCheckoutMail::class, 1);
+ Mail::assertSent(BulkAssetCheckoutMail::class, 2);
+
Mail::assertSent(BulkAssetCheckoutMail::class, function (BulkAssetCheckoutMail $mail) {
// @todo: assert contents
return $mail->hasTo('[email protected]');
});
+
+ Mail::assertSent(BulkAssetCheckoutMail::class, function (BulkAssetCheckoutMail $mail) {
+ // @todo: assert contents
+ return $mail->hasTo('[email protected]');
+ });
}
}