Tests fixed.
This commit is contained in:
parent
e85d27898c
commit
2f042dec4b
@ -56,9 +56,7 @@ abstract class Factory extends BaseFactory
|
|||||||
|
|
||||||
public function setCompany(): void
|
public function setCompany(): void
|
||||||
{
|
{
|
||||||
$company_id = $this->getRawAttribute('company_id');
|
$this->company = $this->user->companies()->first();
|
||||||
|
|
||||||
$this->company = !empty($company_id) ? Company::find($company_id) : $this->user->companies()->first();
|
|
||||||
|
|
||||||
$this->company->makeCurrent();
|
$this->company->makeCurrent();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user