A free open source IT asset/license management system
Improve test case
Marcus Moorefdcb891cbbdb
diff --git a/tests/Unit/NotificationTest.php b/tests/Unit/NotificationTest.phpindex 3d5b3c5a76..5b420a6753 100644--- a/tests/Unit/NotificationTest.php+++ b/tests/Unit/NotificationTest.php@@ -7,9 +7,7 @@ use App\Models\Asset;use App\Models\AssetModel;use App\Models\Category;use Carbon\Carbon;-use App\Notifications\CheckoutAssetNotification;use Illuminate\Support\Facades\Mail;-use Illuminate\Support\Facades\Notification;use Tests\TestCase;class NotificationTest extends TestCase@@ -33,8 +31,8 @@ class NotificationTest extends TestCaseMail::fake();$asset->checkOut($user, $admin->id);- Mail::assertSent(CheckoutAssetMail::class, function ($mail) use ($user) {- return $mail->hasTo($user->email);+ Mail::assertSent(CheckoutAssetMail::class, function (CheckoutAssetMail $mail) use ($user) {+ return $mail->hasTo($user->email) && $mail->hasSubject(trans('mail.Asset_Checkout_Notification'));});}public function testDefaultEulaIsSentWhenSetInCategory()