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;
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 TestCase
Notification::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();

View file

@ -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 TestCase
Notification::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();