From 03b7891edc6d9af615240f6405c6248970280613 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Tue, 27 Feb 2024 18:03:53 -0800 Subject: [PATCH] Remove unneeded factory states --- .../Webhooks/SlackNotificationsUponCheckinTest.php | 6 +++--- .../SlackNotificationsUponCheckoutTest.php | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/Feature/Notifications/Webhooks/SlackNotificationsUponCheckinTest.php b/tests/Feature/Notifications/Webhooks/SlackNotificationsUponCheckinTest.php index 372f212c03..b352574ff6 100644 --- a/tests/Feature/Notifications/Webhooks/SlackNotificationsUponCheckinTest.php +++ b/tests/Feature/Notifications/Webhooks/SlackNotificationsUponCheckinTest.php @@ -77,7 +77,7 @@ class SlackNotificationsUponCheckinTest extends TestCase $this->settings->enableSlackWebhook(); $this->fireCheckInEvent( - Asset::factory()->laptopMbp()->create(), + Asset::factory()->create(), $checkoutTarget(), ); @@ -90,7 +90,7 @@ class SlackNotificationsUponCheckinTest extends TestCase $this->settings->disableSlackWebhook(); $this->fireCheckInEvent( - Asset::factory()->laptopMbp()->create(), + Asset::factory()->create(), $checkoutTarget(), ); @@ -102,7 +102,7 @@ class SlackNotificationsUponCheckinTest extends TestCase $this->settings->enableSlackWebhook(); $this->fireCheckInEvent( - Component::factory()->ramCrucial8()->create(), + Component::factory()->create(), Asset::factory()->laptopMbp()->create(), ); diff --git a/tests/Feature/Notifications/Webhooks/SlackNotificationsUponCheckoutTest.php b/tests/Feature/Notifications/Webhooks/SlackNotificationsUponCheckoutTest.php index 58570f90e7..91d2917844 100644 --- a/tests/Feature/Notifications/Webhooks/SlackNotificationsUponCheckoutTest.php +++ b/tests/Feature/Notifications/Webhooks/SlackNotificationsUponCheckoutTest.php @@ -54,7 +54,7 @@ class SlackNotificationsUponCheckoutTest extends TestCase $this->settings->enableSlackWebhook(); $this->fireCheckOutEvent( - Accessory::factory()->appleBtKeyboard()->create(), + Accessory::factory()->create(), User::factory()->create(), ); @@ -66,7 +66,7 @@ class SlackNotificationsUponCheckoutTest extends TestCase $this->settings->disableSlackWebhook(); $this->fireCheckOutEvent( - Accessory::factory()->appleBtKeyboard()->create(), + Accessory::factory()->create(), User::factory()->create(), ); @@ -79,7 +79,7 @@ class SlackNotificationsUponCheckoutTest extends TestCase $this->settings->enableSlackWebhook(); $this->fireCheckOutEvent( - Asset::factory()->laptopMbp()->create(), + Asset::factory()->create(), $checkoutTarget(), ); @@ -92,7 +92,7 @@ class SlackNotificationsUponCheckoutTest extends TestCase $this->settings->disableSlackWebhook(); $this->fireCheckOutEvent( - Asset::factory()->laptopMbp()->create(), + Asset::factory()->create(), $checkoutTarget(), ); @@ -104,7 +104,7 @@ class SlackNotificationsUponCheckoutTest extends TestCase $this->settings->enableSlackWebhook(); $this->fireCheckOutEvent( - Component::factory()->ramCrucial8()->create(), + Component::factory()->create(), Asset::factory()->laptopMbp()->create(), ); @@ -116,7 +116,7 @@ class SlackNotificationsUponCheckoutTest extends TestCase $this->settings->enableSlackWebhook(); $this->fireCheckOutEvent( - Consumable::factory()->cardstock()->create(), + Consumable::factory()->create(), User::factory()->create(), ); @@ -128,7 +128,7 @@ class SlackNotificationsUponCheckoutTest extends TestCase $this->settings->disableSlackWebhook(); $this->fireCheckOutEvent( - Consumable::factory()->cardstock()->create(), + Consumable::factory()->create(), User::factory()->create(), );