mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -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;
|
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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue