Update data provider name

This commit is contained in:
Marcus Moore 2023-04-19 18:10:23 -07:00
parent 645f6ed692
commit c357d9f01e
No known key found for this signature in database
2 changed files with 10 additions and 10 deletions

View file

@ -19,7 +19,7 @@ class AssetWebhookTest extends TestCase
{ {
use InteractsWithSettings; use InteractsWithSettings;
public function checkoutTargets(): array public function targets(): array
{ {
return [ return [
'Asset checked out to user' => [fn() => User::factory()->create()], '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) public function testAssetCheckoutSendsWebhookNotificationWhenSettingEnabled($checkoutTarget)
{ {
Notification::fake(); Notification::fake();
@ -51,7 +51,7 @@ class AssetWebhookTest extends TestCase
); );
} }
/** @dataProvider checkoutTargets */ /** @dataProvider targets */
public function testAssetCheckoutDoesNotSendWebhookNotificationWhenSettingDisabled($checkoutTarget) public function testAssetCheckoutDoesNotSendWebhookNotificationWhenSettingDisabled($checkoutTarget)
{ {
Notification::fake(); Notification::fake();
@ -68,7 +68,7 @@ class AssetWebhookTest extends TestCase
Notification::assertNotSentTo(new AnonymousNotifiable, CheckoutAssetNotification::class); Notification::assertNotSentTo(new AnonymousNotifiable, CheckoutAssetNotification::class);
} }
/** @dataProvider checkoutTargets */ /** @dataProvider targets */
public function testAssetCheckinSendsWebhookNotificationWhenSettingEnabled($checkoutTarget) public function testAssetCheckinSendsWebhookNotificationWhenSettingEnabled($checkoutTarget)
{ {
Notification::fake(); Notification::fake();
@ -91,7 +91,7 @@ class AssetWebhookTest extends TestCase
); );
} }
/** @dataProvider checkoutTargets */ /** @dataProvider targets */
public function testAssetCheckinDoesNotSendWebhookNotificationWhenSettingDisabled($checkoutTarget) public function testAssetCheckinDoesNotSendWebhookNotificationWhenSettingDisabled($checkoutTarget)
{ {
Notification::fake(); Notification::fake();

View file

@ -19,7 +19,7 @@ class LicenseWebhookTest extends TestCase
{ {
use InteractsWithSettings; use InteractsWithSettings;
public function checkoutTargets(): array public function targets(): array
{ {
return [ return [
'License checked out to user' => [fn() => User::factory()->create()], '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) public function testLicenseCheckoutSendsWebhookNotificationWhenSettingEnabled($checkoutTarget)
{ {
Notification::fake(); Notification::fake();
@ -50,7 +50,7 @@ class LicenseWebhookTest extends TestCase
); );
} }
/** @dataProvider checkoutTargets */ /** @dataProvider targets */
public function testLicenseCheckoutDoesNotSendWebhookNotificationWhenSettingDisabled($checkoutTarget) public function testLicenseCheckoutDoesNotSendWebhookNotificationWhenSettingDisabled($checkoutTarget)
{ {
Notification::fake(); Notification::fake();
@ -67,7 +67,7 @@ class LicenseWebhookTest extends TestCase
Notification::assertNotSentTo(new AnonymousNotifiable, CheckoutLicenseSeatNotification::class); Notification::assertNotSentTo(new AnonymousNotifiable, CheckoutLicenseSeatNotification::class);
} }
/** @dataProvider checkoutTargets */ /** @dataProvider targets */
public function testLicenseCheckinSendsWebhookNotificationWhenSettingEnabled($checkoutTarget) public function testLicenseCheckinSendsWebhookNotificationWhenSettingEnabled($checkoutTarget)
{ {
Notification::fake(); Notification::fake();
@ -90,7 +90,7 @@ class LicenseWebhookTest extends TestCase
); );
} }
/** @dataProvider checkoutTargets */ /** @dataProvider targets */
public function testLicenseCheckinDoesNotSendWebhookNotificationWhenSettingDisabled($checkoutTarget) public function testLicenseCheckinDoesNotSendWebhookNotificationWhenSettingDisabled($checkoutTarget)
{ {
Notification::fake(); Notification::fake();