mirror of
https://github.com/snipe/snipe-it.git
synced 2026-02-05 00:15:39 +00:00
Added assertion for success in test
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
@ -24,9 +24,11 @@ class AuditAssetTest extends TestCase
|
||||
|
||||
public function testAssetCanBeAudited()
|
||||
{
|
||||
$this->actingAs(User::factory()->auditAssets()->create())
|
||||
$response = $this->actingAs(User::factory()->auditAssets()->create())
|
||||
->post(route('asset.audit.store', Asset::factory()->create()))
|
||||
->assertStatus(302)
|
||||
->assertRedirect(route('assets.audit.due'));
|
||||
|
||||
$this->followRedirects($response)->assertSee('success');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user