A free open source IT asset/license management system
Populate scenario
Marcus Moore0da393f95065
diff --git a/tests/Feature/Notifications/Email/BulkCheckoutEmailTest.php b/tests/Feature/Notifications/Email/BulkCheckoutEmailTest.phpindex fa6d0d4a04..92a3cf648e 100644--- a/tests/Feature/Notifications/Email/BulkCheckoutEmailTest.php+++ b/tests/Feature/Notifications/Email/BulkCheckoutEmailTest.php@@ -24,7 +24,9 @@ class BulkCheckoutEmailTest extends TestCaseMail::fake();- $this->assets = Asset::factory()->count(2)->create();+ $this->settings->disableAdminCC();++ $this->assets = Asset::factory()->requiresAcceptance()->count(2)->create();$this->target = User::factory()->create(['email' => '[email protected]']);$this->admin = User::factory()->create();$this->checkout_at = date('Y-m-d H:i:s');@@ -33,8 +35,6 @@ class BulkCheckoutEmailTest extends TestCasepublic function test_email_is_sent_to_user(){- $this->settings->disableAdminCC();-$this->dispatchEvent();Mail::assertNotSent(CheckoutAssetMail::class);@@ -48,8 +48,6 @@ class BulkCheckoutEmailTest extends TestCasepublic function test_email_is_not_sent_when_user_does_not_have_email_address(){- $this->settings->disableAdminCC();-$this->target = User::factory()->create(['email' => null]);$this->dispatchEvent();@@ -61,7 +59,12 @@ class BulkCheckoutEmailTest extends TestCasepublic function test_email_is_not_sent_if_assets_do_not_require_acceptance(){- $this->markTestIncomplete();+ $this->assets = Asset::factory()->count(2)->create();++ $this->dispatchEvent();++ Mail::assertNotSent(CheckoutAssetMail::class);+ Mail::assertNotSent(BulkAssetCheckoutMail::class);}public function test_email_is_sent_to_cc_address()