From c9917e78edaf50415b96fb343db19b7aaa01c021 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 26 Sep 2023 08:25:14 +1000 Subject: [PATCH] Add back tests: --- tests/Feature/BaseApiTest.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/Feature/BaseApiTest.php b/tests/Feature/BaseApiTest.php index 17e9942863c0..5f2de469f053 100644 --- a/tests/Feature/BaseApiTest.php +++ b/tests/Feature/BaseApiTest.php @@ -579,12 +579,11 @@ class BaseApiTest extends TestCase ])->get('/api/v1/companies/'.$this->company->hashed_id) ->assertStatus(200); + $response = $this->withHeaders([ + 'X-API-SECRET' => config('ninja.api_secret'), + 'X-API-TOKEN' => $this->low_token, + ])->get('/api/v1/client_gateway_tokens'); - // $response = $this->withHeaders([ - // 'X-API-SECRET' => config('ninja.api_secret'), - // 'X-API-TOKEN' => $this->low_token, - // ])->get('/api/v1/client_gateway_tokens'); - - // $response->assertStatus(403); + $response->assertStatus(403); } }