create([ 'status' => 'active', 'app_client_secret' => 'should-not-leak', ]); $onboardingUrl = "/admin/t/{$tenant->external_id}/onboarding"; $owner = User::factory()->create(); TenantMembership::query()->create([ 'tenant_id' => $tenant->getKey(), 'user_id' => $owner->getKey(), 'role' => 'owner', 'source' => 'manual', 'source_ref' => null, 'created_by_user_id' => null, ]); OnboardingSession::factory()->create([ 'tenant_id' => $tenant->getKey(), 'status' => 'in_progress', 'current_step' => 4, ]); $this->actingAs($owner); $this->get($onboardingUrl) ->assertSuccessful() ->assertSee('consent', escape: false) ->assertDontSee('should-not-leak', escape: false); });