Improve assertions

This commit is contained in:
Marcus Moore
2025-10-22 14:23:07 -07:00
parent 1811e061aa
commit fc2e35cd32

View File

@@ -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);
}
}