Skip to content

A free open source IT asset/license management system

Strengthen test scenario

Marcus Moore6ff76a12f8d3
diff --git a/tests/Feature/Notifications/Email/EmailNotificationsUponCheckinTest.php b/tests/Feature/Notifications/Email/EmailNotificationsUponCheckinTest.php
index cc4fa0be2c..4ca34ca87e 100644
--- a/tests/Feature/Notifications/Email/EmailNotificationsUponCheckinTest.php
+++ b/tests/Feature/Notifications/Email/EmailNotificationsUponCheckinTest.php
@@ -97,7 +97,11 @@ class EmailNotificationsUponCheckinTest extends TestCase
{
$this->settings->enableAdminCC('[email protected]');
- $category = Category::factory()->create(['checkin_email' => false]);
+ $category = Category::factory()->create([
+ 'checkin_email' => false,
+ 'eula_text' => null,
+ 'use_default_eula' => false,
+ ]);
$assetModel = AssetModel::factory()->create(['category_id' => $category->id]);
$asset = Asset::factory()->create(['model_id' => $assetModel->id]);
diff --git a/tests/Feature/Notifications/Email/EmailNotificationsUponCheckoutTest.php b/tests/Feature/Notifications/Email/EmailNotificationsUponCheckoutTest.php
index edeae63658..e934f534b1 100644
--- a/tests/Feature/Notifications/Email/EmailNotificationsUponCheckoutTest.php
+++ b/tests/Feature/Notifications/Email/EmailNotificationsUponCheckoutTest.php
@@ -27,7 +27,11 @@ class EmailNotificationsUponCheckoutTest extends TestCase
{
$this->settings->enableAdminCC('[email protected]');
- $category = Category::factory()->create(['checkin_email' => false]);
+ $category = Category::factory()->create([
+ 'checkin_email' => false,
+ 'eula_text' => null,
+ 'use_default_eula' => false,
+ ]);
$assetModel = AssetModel::factory()->create(['category_id' => $category->id]);
$asset = Asset::factory()->create(['model_id' => $assetModel->id]);