withoutExceptionHandling()->login()->loginNami(); Member::factory()->defaults()->postBillKind()->create(['firstname' => 'Jane', 'main_phone' => '+49 176 70343221']); Member::factory()->defaults()->emailBillKind()->create(['firstname' => 'Max']); $response = $this->callFilter('member-export', ['bill_kind' => 'Post']); $response->assertDownload('mitglieder.csv'); $contents = Storage::disk('temp')->get('mitglieder.csv'); $this->assertTrue(str_contains($contents, 'Jane')); $this->assertTrue(str_contains($contents, '+49 176 70343221')); $this->assertFalse(str_contains($contents, 'Max')); } }