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
f4bea090a8
commit
2fd861d65c
@ -95,7 +95,13 @@ class UpdateCompanyUserTest extends TestCase
|
||||
$settings = new \stdClass();
|
||||
$settings->invoice = 'ninja';
|
||||
|
||||
$company_user = CompanyUser::whereUserId($this->user->id)->whereCompanyId($this->company->id)->first();
|
||||
$company_user = CompanyUser::query()
|
||||
->where('user_id', $this->user->id)
|
||||
->where('company_id', $this->company->id)
|
||||
->first();
|
||||
|
||||
$this->assertNotNull($company_user);
|
||||
|
||||
$company_user->settings = $settings;
|
||||
|
||||
$this->user->company_user = $company_user;
|
||||
|
Loading…
x
Reference in New Issue
Block a user