Skip to content

A free open source IT asset/license management system

Update helper name

Marcus Mooreb156aa74a59c
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' => '',