Add additional assertions

This commit is contained in:
Marcus Moore 2024-04-10 16:01:15 -07:00
parent 4434de6241
commit b63962e90b
No known key found for this signature in database

View file

@ -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);
}