Skip to content

A free open source IT asset/license management system

Implement test

Marcus Moore7a804aa5763c
diff --git a/tests/Feature/Notifications/Email/BulkCheckoutEmailTest.php b/tests/Feature/Notifications/Email/BulkCheckoutEmailTest.php
index 9fc637228d..aeb9fe0d65 100644
--- a/tests/Feature/Notifications/Email/BulkCheckoutEmailTest.php
+++ b/tests/Feature/Notifications/Email/BulkCheckoutEmailTest.php
@@ -101,6 +101,14 @@ class BulkCheckoutEmailTest extends TestCase
{
$this->assets = Asset::factory()->doesNotRequireAcceptance()->count(2)->create();
+ $category = Category::factory()
+ ->doesNotRequireAcceptance()
+ ->doesNotSendCheckinEmail()
+ ->withNoLocalOrGlobalEula()
+ ->create();
+
+ $this->assets->each(fn($asset) => $asset->model->category()->associate($category)->save());
+
$this->sendRequest();
Mail::assertNotSent(CheckoutAssetMail::class);