From c4a205ff0f10f81f55b393bbf618cbacf0f61ad2 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 16 Jul 2023 12:50:59 +1000 Subject: [PATCH] Fixes for tests --- tests/Feature/Export/ReportCsvGenerationTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/Feature/Export/ReportCsvGenerationTest.php b/tests/Feature/Export/ReportCsvGenerationTest.php index 28245ab228..918a8e78d8 100644 --- a/tests/Feature/Export/ReportCsvGenerationTest.php +++ b/tests/Feature/Export/ReportCsvGenerationTest.php @@ -14,6 +14,7 @@ namespace Tests\Feature\Export; use Tests\TestCase; use App\Models\User; use App\Models\Client; +use App\Models\Credit; use League\Csv\Reader; use App\Models\Account; use App\Models\Company; @@ -253,8 +254,8 @@ class ReportCsvGenerationTest extends TestCase 'X-API-SECRET' => config('ninja.api_secret'), 'X-API-TOKEN' => $this->token, ])->post('/api/v1/reports/credits', $data); + + $response->assertStatus(200); - - } } \ No newline at end of file