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(); ->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; $token = CompanyToken::whereCompanyId($company->id)->first()->token;