Skip to content

A free open source IT asset/license management system

Improve test class names

Marcus Mooreb41902976bb9
diff --git a/tests/Feature/Notifications/AccessoryCheckoutWebhookNotificationTest.php b/tests/Feature/Notifications/AccessoryWebhookTest.php
similarity index 96%
rename from tests/Feature/Notifications/AccessoryCheckoutWebhookNotificationTest.php
rename to tests/Feature/Notifications/AccessoryWebhookTest.php
index 04bb0f2186..2350f4e9f7 100644
--- a/tests/Feature/Notifications/AccessoryCheckoutWebhookNotificationTest.php
+++ b/tests/Feature/Notifications/AccessoryWebhookTest.php
@@ -2,7 +2,6 @@
namespace Tests\Feature\Notifications;
-
use App\Events\CheckoutableCheckedOut;
use App\Models\Accessory;
use App\Models\Setting;
@@ -12,7 +11,7 @@ use Illuminate\Notifications\AnonymousNotifiable;
use Illuminate\Support\Facades\Notification;
use Tests\TestCase;
-class AccessoryCheckoutWebhookNotificationTest extends TestCase
+class AccessoryWebhookTest extends TestCase
{
public function testWebhookNotificationsAreSentOnAccessoryCheckoutWhenWebhookSettingEnabled()
{
diff --git a/tests/Feature/Notifications/AssetCheckoutWebhookNotificationTest.php b/tests/Feature/Notifications/AssetWebhookTest.php
similarity index 97%
rename from tests/Feature/Notifications/AssetCheckoutWebhookNotificationTest.php
rename to tests/Feature/Notifications/AssetWebhookTest.php
index 1523b93c09..e153de40f6 100644
--- a/tests/Feature/Notifications/AssetCheckoutWebhookNotificationTest.php
+++ b/tests/Feature/Notifications/AssetWebhookTest.php
@@ -13,7 +13,7 @@ use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Notification;
use Tests\TestCase;
-class AssetCheckoutWebhookNotificationTest extends TestCase
+class AssetWebhookTest extends TestCase
{
public function checkoutTargets()
{
diff --git a/tests/Feature/Notifications/ConsumableCheckoutWebhookNotificationTest.php b/tests/Feature/Notifications/ConsumableWebhookTest.php
similarity index 96%
rename from tests/Feature/Notifications/ConsumableCheckoutWebhookNotificationTest.php
rename to tests/Feature/Notifications/ConsumableWebhookTest.php
index c69576007f..9313831f57 100644
--- a/tests/Feature/Notifications/ConsumableCheckoutWebhookNotificationTest.php
+++ b/tests/Feature/Notifications/ConsumableWebhookTest.php
@@ -11,7 +11,7 @@ use Illuminate\Notifications\AnonymousNotifiable;
use Illuminate\Support\Facades\Notification;
use Tests\TestCase;
-class ConsumableCheckoutWebhookNotificationTest extends TestCase
+class ConsumableWebhookTest extends TestCase
{
public function testWebhookNotificationsAreSentOnConsumableCheckoutWhenWebhookSettingEnabled()
{
diff --git a/tests/Feature/Notifications/LicenseCheckoutWebhookNotificationTest.php b/tests/Feature/Notifications/LicenseWebhookTest.php
similarity index 96%
rename from tests/Feature/Notifications/LicenseCheckoutWebhookNotificationTest.php
rename to tests/Feature/Notifications/LicenseWebhookTest.php
index 57948a14b6..f20ffc9937 100644
--- a/tests/Feature/Notifications/LicenseCheckoutWebhookNotificationTest.php
+++ b/tests/Feature/Notifications/LicenseWebhookTest.php
@@ -12,7 +12,7 @@ use Illuminate\Notifications\AnonymousNotifiable;
use Illuminate\Support\Facades\Notification;
use Tests\TestCase;
-class LicenseCheckoutWebhookNotificationTest extends TestCase
+class LicenseWebhookTest extends TestCase
{
public function checkoutTargets()
{