mirror of
https://github.com/grokability/snipe-it.git
synced 2026-03-12 17:52:00 +08:00
Improve assertions
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user