withoutMiddleware( ThrottleRequests::class ); $this->makeTestData(); $this->withoutExceptionHandling(); } public function testClientExportCsv() { $data = [ "date_range" => "this_year", "report_keys" => [], "send_email" => false ]; $response = $this->withHeaders([ 'X-API-SECRET' => config('ninja.api_secret'), 'X-API-TOKEN' => $this->token, ])->post('/api/v1/reports/clients' , $data); $response->assertStatus(200); } public function testContactExportCsv() { $data = [ "date_range" => "this_year", "report_keys" => [], "send_email" => false ]; $response = $this->withHeaders([ 'X-API-SECRET' => config('ninja.api_secret'), 'X-API-TOKEN' => $this->token, ])->post('/api/v1/reports/contacts' , $data); $response->assertStatus(200); } }