mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Update data provider name
This commit is contained in:
parent
645f6ed692
commit
c357d9f01e
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue