mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for tests
This commit is contained in:
parent
73c09d30e3
commit
f4bea090a8
@ -91,7 +91,6 @@ class UpdateCompanyUserTest extends TestCase
|
||||
|
||||
public function testUpdatingCompanyUserAsAdmin()
|
||||
{
|
||||
// User::unguard();
|
||||
|
||||
$settings = new \stdClass();
|
||||
$settings->invoice = 'ninja';
|
||||
@ -108,7 +107,7 @@ class UpdateCompanyUserTest extends TestCase
|
||||
$response = $this->withHeaders([
|
||||
'X-API-SECRET' => config('ninja.api_secret'),
|
||||
'X-API-TOKEN' => $this->token,
|
||||
])->putJson('/api/v1/company_users/'.$this->encodePrimaryKey($this->user->id), $user);
|
||||
])->putJson("/api/v1/company_users/{$this->user->hashed_id}", $user);
|
||||
|
||||
$response->assertStatus(200);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user