1
0
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:
David Bomba 2019-06-26 09:50:50 +10:00
parent 65afb4242b
commit e51c545f1a

View File

@ -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;