mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-04 08:14:37 -04:00
Minor fixes for tests
This commit is contained in:
parent
3e163b8fe6
commit
495034cec8
@ -529,21 +529,11 @@ class BaseApiTest extends TestCase
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests user facing routes respond with the correct status and/or data set
|
* Tests user facing routes respond with the correct status and/or data set
|
||||||
*/
|
*/
|
||||||
public function testRestrictedUserRoute()
|
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([
|
$response = $this->withHeaders([
|
||||||
'X-API-SECRET' => config('ninja.api_secret'),
|
'X-API-SECRET' => config('ninja.api_secret'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user