From 5beb0bf534e75c676906bb8cd993147366a7b447 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 8 Apr 2025 02:39:17 +0100 Subject: [PATCH] Added assertion for success in test Signed-off-by: snipe --- tests/Feature/Assets/Ui/AuditAssetTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'); } }