mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Add test to ensure notification is not sent for license checkouts if not enabled
This commit is contained in:
parent
158e1544cd
commit
134ab631d4
|
@ -44,4 +44,19 @@ class LicenseCheckoutWebhookNotificationTest extends TestCase
|
|||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** @dataProvider checkoutTargets */
|
||||
public function testWebhookNotificationsAreNotSentOnLicenseCheckoutWhenWebhookSettingNotEnabled($checkoutTarget)
|
||||
{
|
||||
Notification::fake();
|
||||
|
||||
event(new CheckoutableCheckedOut(
|
||||
LicenseSeat::factory()->create(),
|
||||
$checkoutTarget(),
|
||||
User::factory()->superuser()->create(),
|
||||
''
|
||||
));
|
||||
|
||||
Notification::assertNotSentTo(new AnonymousNotifiable, CheckoutLicenseSeatNotification::class);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue