mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-27 05:31:11 -08:00
Add additional assertions
This commit is contained in:
parent
4434de6241
commit
b63962e90b
|
@ -39,7 +39,8 @@ class AssetCheckoutTest extends TestCase
|
||||||
'expected_checkin' => '2024-03-28',
|
'expected_checkin' => '2024-03-28',
|
||||||
'note' => 'An awesome note',
|
'note' => 'An awesome note',
|
||||||
])
|
])
|
||||||
->assertSessionHas('error');
|
->assertSessionHas('error')
|
||||||
|
->assertRedirect(route('hardware.index'));
|
||||||
|
|
||||||
Event::assertNotDispatched(CheckoutableCheckedOut::class);
|
Event::assertNotDispatched(CheckoutableCheckedOut::class);
|
||||||
}
|
}
|
||||||
|
@ -60,7 +61,8 @@ class AssetCheckoutTest extends TestCase
|
||||||
'expected_checkin' => '2024-03-28',
|
'expected_checkin' => '2024-03-28',
|
||||||
'note' => 'An awesome note',
|
'note' => 'An awesome note',
|
||||||
])
|
])
|
||||||
->assertSessionHas('error');
|
->assertSessionHas('error')
|
||||||
|
->assertRedirect(route('hardware.index'));
|
||||||
|
|
||||||
Event::assertNotDispatched(CheckoutableCheckedOut::class);
|
Event::assertNotDispatched(CheckoutableCheckedOut::class);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue