From b63962e90b454fc799d882c3f789499fee729a9b Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Wed, 10 Apr 2024 16:01:15 -0700 Subject: [PATCH] Add additional assertions --- tests/Feature/Checkouts/AssetCheckoutTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/Feature/Checkouts/AssetCheckoutTest.php b/tests/Feature/Checkouts/AssetCheckoutTest.php index 8577f638e5..c2e4288785 100644 --- a/tests/Feature/Checkouts/AssetCheckoutTest.php +++ b/tests/Feature/Checkouts/AssetCheckoutTest.php @@ -39,7 +39,8 @@ class AssetCheckoutTest extends TestCase 'expected_checkin' => '2024-03-28', 'note' => 'An awesome note', ]) - ->assertSessionHas('error'); + ->assertSessionHas('error') + ->assertRedirect(route('hardware.index')); Event::assertNotDispatched(CheckoutableCheckedOut::class); } @@ -60,7 +61,8 @@ class AssetCheckoutTest extends TestCase 'expected_checkin' => '2024-03-28', 'note' => 'An awesome note', ]) - ->assertSessionHas('error'); + ->assertSessionHas('error') + ->assertRedirect(route('hardware.index')); Event::assertNotDispatched(CheckoutableCheckedOut::class); }