mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-05 18:52:44 +01:00
Fixes for tests
This commit is contained in:
parent
65afb4242b
commit
e51c545f1a
@ -85,8 +85,9 @@ class CompanyTest extends TestCase
|
||||
]
|
||||
)
|
||||
->assertStatus(200)->decodeResponseJson();
|
||||
//Log::error($response);
|
||||
|
||||
$company = Company::find($this->decodePrimaryKey($response['data']['id']));
|
||||
$company = Company::find($this->decodePrimaryKey($response['data']['company_users'][0]['company']['id']));
|
||||
|
||||
$token = CompanyToken::whereCompanyId($company->id)->first()->token;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user