withoutExceptionHandling()->login()->withNamiSettings(); $member = Member::factory()->defaults()->create(['firstname' => 'Max', 'lastname' => 'Muster']); $response = $this->get("/member/{$member->id}/efz"); $response->assertOk(); $response->assertHeader('Content-Disposition', 'inline; filename="efz-fuer-max-muster.pdf"'); } }