Skip to content

A free open source IT asset/license management system

Improve assertions

Marcus Moorefc2e35cd32d0
diff --git a/tests/Feature/Notifications/Webhooks/WebhookNotificationsUponBulkAssetCheckoutTest.php b/tests/Feature/Notifications/Webhooks/WebhookNotificationsUponBulkAssetCheckoutTest.php
index 69ec5c3a85..5f94891a7d 100644
--- a/tests/Feature/Notifications/Webhooks/WebhookNotificationsUponBulkAssetCheckoutTest.php
+++ b/tests/Feature/Notifications/Webhooks/WebhookNotificationsUponBulkAssetCheckoutTest.php
@@ -5,6 +5,7 @@ namespace Tests\Feature\Notifications\Webhooks;
use App\Events\CheckoutablesCheckedOutInBulk;
use App\Models\Asset;
use App\Models\User;
+use App\Notifications\CheckoutAssetNotification;
use Illuminate\Support\Facades\Notification;
use Tests\TestCase;
@@ -33,6 +34,9 @@ class WebhookNotificationsUponBulkAssetCheckoutTest extends TestCase
'A note here',
);
+ Notification::assertNothingSentTo(CheckoutAssetNotification::class);
+ Notification::assertSentTimes(BulkAssetCheckoutNotification::class, 1);
+
$this->assertSlackNotificationSent(BulkAssetCheckoutNotification::class);
}
}