A free open source IT asset/license management system
Update data provider name
Marcus Moorec357d9f01efe
diff --git a/tests/Feature/Notifications/AssetWebhookTest.php b/tests/Feature/Notifications/AssetWebhookTest.phpindex 41b2598618..ae45a4caa4 100644--- a/tests/Feature/Notifications/AssetWebhookTest.php+++ b/tests/Feature/Notifications/AssetWebhookTest.php@@ -19,7 +19,7 @@ class AssetWebhookTest extends TestCase{use InteractsWithSettings;- public function checkoutTargets(): array+ public function targets(): array{return ['Asset checked out to user' => [fn() => User::factory()->create()],@@ -28,7 +28,7 @@ class AssetWebhookTest extends TestCase];}- /** @dataProvider checkoutTargets */+ /** @dataProvider targets */public function testAssetCheckoutSendsWebhookNotificationWhenSettingEnabled($checkoutTarget){Notification::fake();@@ -51,7 +51,7 @@ class AssetWebhookTest extends TestCase);}- /** @dataProvider checkoutTargets */+ /** @dataProvider targets */public function testAssetCheckoutDoesNotSendWebhookNotificationWhenSettingDisabled($checkoutTarget){Notification::fake();@@ -68,7 +68,7 @@ class AssetWebhookTest extends TestCaseNotification::assertNotSentTo(new AnonymousNotifiable, CheckoutAssetNotification::class);}- /** @dataProvider checkoutTargets */+ /** @dataProvider targets */public function testAssetCheckinSendsWebhookNotificationWhenSettingEnabled($checkoutTarget){Notification::fake();@@ -91,7 +91,7 @@ class AssetWebhookTest extends TestCase);}- /** @dataProvider checkoutTargets */+ /** @dataProvider targets */public function testAssetCheckinDoesNotSendWebhookNotificationWhenSettingDisabled($checkoutTarget){Notification::fake();diff --git a/tests/Feature/Notifications/LicenseWebhookTest.php b/tests/Feature/Notifications/LicenseWebhookTest.phpindex da511d880f..4313ff69d4 100644--- a/tests/Feature/Notifications/LicenseWebhookTest.php+++ b/tests/Feature/Notifications/LicenseWebhookTest.php@@ -19,7 +19,7 @@ class LicenseWebhookTest extends TestCase{use InteractsWithSettings;- public function checkoutTargets(): array+ public function targets(): array{return ['License checked out to user' => [fn() => User::factory()->create()],@@ -27,7 +27,7 @@ class LicenseWebhookTest extends TestCase];}- /** @dataProvider checkoutTargets */+ /** @dataProvider targets */public function testLicenseCheckoutSendsWebhookNotificationWhenSettingEnabled($checkoutTarget){Notification::fake();@@ -50,7 +50,7 @@ class LicenseWebhookTest extends TestCase);}- /** @dataProvider checkoutTargets */+ /** @dataProvider targets */public function testLicenseCheckoutDoesNotSendWebhookNotificationWhenSettingDisabled($checkoutTarget){Notification::fake();@@ -67,7 +67,7 @@ class LicenseWebhookTest extends TestCaseNotification::assertNotSentTo(new AnonymousNotifiable, CheckoutLicenseSeatNotification::class);}- /** @dataProvider checkoutTargets */+ /** @dataProvider targets */public function testLicenseCheckinSendsWebhookNotificationWhenSettingEnabled($checkoutTarget){Notification::fake();@@ -90,7 +90,7 @@ class LicenseWebhookTest extends TestCase);}- /** @dataProvider checkoutTargets */+ /** @dataProvider targets */public function testLicenseCheckinDoesNotSendWebhookNotificationWhenSettingDisabled($checkoutTarget){Notification::fake();