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