diff --git a/tests/Feature/Assets/Ui/AuditAssetTest.php b/tests/Feature/Assets/Ui/AuditAssetTest.php index c36282366..a966e6f45 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'); } }