Skip to content

A free open source IT asset/license management system

Added assertion for success in test

snipe5beb0bf534e7
diff --git a/tests/Feature/Assets/Ui/AuditAssetTest.php b/tests/Feature/Assets/Ui/AuditAssetTest.php
index c362823667..a966e6f458 100644
--- a/tests/Feature/Assets/Ui/AuditAssetTest.php
+++ b/tests/Feature/Assets/Ui/AuditAssetTest.php
@@ -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');
}
}