Minor fixes for tests

This commit is contained in:
David Bomba 2023-02-01 10:39:45 +11:00
parent 3e163b8fe6
commit 495034cec8

View File

@ -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'),