A free open source IT asset/license management system
Add additional assertions
Marcus Mooreb63962e90b45
diff --git a/tests/Feature/Checkouts/AssetCheckoutTest.php b/tests/Feature/Checkouts/AssetCheckoutTest.phpindex 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);}