3
0
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:
snipe
2025-04-08 02:39:17 +01:00
parent c59e9770b7
commit 5beb0bf534

View File

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