From b156aa74a59cfe474e753ad3cb8665cae2361a8e Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Tue, 27 Feb 2024 16:45:49 -0800 Subject: [PATCH] Update helper name --- tests/Feature/Notifications/AccessoryWebhookTest.php | 4 ++-- tests/Feature/Notifications/AssetWebhookTest.php | 4 ++-- tests/Feature/Notifications/ConsumableWebhookTest.php | 2 +- tests/Feature/Notifications/LicenseWebhookTest.php | 4 ++-- tests/Support/Settings.php | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/Feature/Notifications/AccessoryWebhookTest.php b/tests/Feature/Notifications/AccessoryWebhookTest.php index 2e3ef999ba..b6e74feb5b 100644 --- a/tests/Feature/Notifications/AccessoryWebhookTest.php +++ b/tests/Feature/Notifications/AccessoryWebhookTest.php @@ -44,7 +44,7 @@ class AccessoryWebhookTest extends TestCase { Notification::fake(); - $this->settings->disableWebhook(); + $this->settings->disableSlackWebhook(); event(new CheckoutableCheckedOut( Accessory::factory()->appleBtKeyboard()->create(), @@ -82,7 +82,7 @@ class AccessoryWebhookTest extends TestCase { Notification::fake(); - $this->settings->disableWebhook(); + $this->settings->disableSlackWebhook(); event(new CheckoutableCheckedIn( Accessory::factory()->appleBtKeyboard()->create(), diff --git a/tests/Feature/Notifications/AssetWebhookTest.php b/tests/Feature/Notifications/AssetWebhookTest.php index 158bced664..d693ce3fe2 100644 --- a/tests/Feature/Notifications/AssetWebhookTest.php +++ b/tests/Feature/Notifications/AssetWebhookTest.php @@ -56,7 +56,7 @@ class AssetWebhookTest extends TestCase { Notification::fake(); - $this->settings->disableWebhook(); + $this->settings->disableSlackWebhook(); event(new CheckoutableCheckedOut( $this->createAsset(), @@ -96,7 +96,7 @@ class AssetWebhookTest extends TestCase { Notification::fake(); - $this->settings->disableWebhook(); + $this->settings->disableSlackWebhook(); event(new CheckoutableCheckedIn( $this->createAsset(), diff --git a/tests/Feature/Notifications/ConsumableWebhookTest.php b/tests/Feature/Notifications/ConsumableWebhookTest.php index 2815731bd2..035573bb4f 100644 --- a/tests/Feature/Notifications/ConsumableWebhookTest.php +++ b/tests/Feature/Notifications/ConsumableWebhookTest.php @@ -42,7 +42,7 @@ class ConsumableWebhookTest extends TestCase { Notification::fake(); - $this->settings->disableWebhook(); + $this->settings->disableSlackWebhook(); event(new CheckoutableCheckedOut( Consumable::factory()->cardstock()->create(), diff --git a/tests/Feature/Notifications/LicenseWebhookTest.php b/tests/Feature/Notifications/LicenseWebhookTest.php index 24ec53a75e..cfb2fca5b8 100644 --- a/tests/Feature/Notifications/LicenseWebhookTest.php +++ b/tests/Feature/Notifications/LicenseWebhookTest.php @@ -55,7 +55,7 @@ class LicenseWebhookTest extends TestCase { Notification::fake(); - $this->settings->disableWebhook(); + $this->settings->disableSlackWebhook(); event(new CheckoutableCheckedOut( LicenseSeat::factory()->create(), @@ -95,7 +95,7 @@ class LicenseWebhookTest extends TestCase { Notification::fake(); - $this->settings->disableWebhook(); + $this->settings->disableSlackWebhook(); event(new CheckoutableCheckedIn( LicenseSeat::factory()->create(), diff --git a/tests/Support/Settings.php b/tests/Support/Settings.php index 3104851152..2d499838c2 100644 --- a/tests/Support/Settings.php +++ b/tests/Support/Settings.php @@ -49,7 +49,7 @@ class Settings ]); } - public function disableWebhook(): Settings + public function disableSlackWebhook(): Settings { return $this->update([ 'webhook_selected' => '',