From 495034cec80ba57cb6032d705125aaf9865335ea Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 1 Feb 2023 10:39:45 +1100 Subject: [PATCH] Minor fixes for tests --- tests/Feature/BaseApiTest.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tests/Feature/BaseApiTest.php b/tests/Feature/BaseApiTest.php index 8d14ea3b6136..cd326b66b049 100644 --- a/tests/Feature/BaseApiTest.php +++ b/tests/Feature/BaseApiTest.php @@ -529,21 +529,11 @@ class BaseApiTest extends TestCase } - /** * Tests user facing routes respond with the correct status and/or data set */ public function testRestrictedUserRoute() { - // $permissions = ["view_invoice","view_client","edit_client","edit_invoice","create_invoice","create_client"]; - - // $response = $this->withHeaders([ - // 'X-API-SECRET' => config('ninja.api_secret'), - // 'X-API-TOKEN' => $this->token, - // ])->get('/api/v1/clients/') - // ->assertStatus(200) - // ->assertJson(fn (AssertableJson $json) => $json->has('data',1)->etc()); - $response = $this->withHeaders([ 'X-API-SECRET' => config('ninja.api_secret'),