Skip to content

A free open source IT asset/license management system

Fix assertion

Marcus Moored276f50fdf97
diff --git a/tests/Feature/Checkouts/Ui/BulkAssetCheckoutTest.php b/tests/Feature/Checkouts/Ui/BulkAssetCheckoutTest.php
index 2d690f51fa..3f2dc50379 100644
--- a/tests/Feature/Checkouts/Ui/BulkAssetCheckoutTest.php
+++ b/tests/Feature/Checkouts/Ui/BulkAssetCheckoutTest.php
@@ -3,6 +3,7 @@
namespace Tests\Feature\Checkouts\Ui;
use App\Events\CheckoutablesCheckedOutInBulk;
+use App\Mail\BulkAssetCheckoutMail;
use App\Mail\CheckoutAssetMail;
use App\Models\Asset;
use App\Models\Company;
@@ -70,8 +71,8 @@ class BulkAssetCheckoutTest extends TestCase
]);
});
- Mail::assertSent(CheckoutAssetMail::class, 2);
- Mail::assertSent(CheckoutAssetMail::class, function (CheckoutAssetMail $mail) {
+ Mail::assertSent(CheckoutAssetMail::class, 0);
+ Mail::assertSent(BulkAssetCheckoutMail::class, function (BulkAssetCheckoutMail $mail) {
return $mail->hasTo('[email protected]');
});
}