Fixes for tests

This commit is contained in:
David Bomba 2021-11-07 22:44:39 +11:00
parent b2a3faa125
commit 1b2972da75
2 changed files with 3 additions and 1 deletions

View File

@ -677,7 +677,6 @@ class EventTest extends TestCase
{ {
$this->withoutMiddleware(PasswordProtection::class); $this->withoutMiddleware(PasswordProtection::class);
$this->expectsEvents([ $this->expectsEvents([
UserWasCreated::class, UserWasCreated::class,
UserWasUpdated::class, UserWasUpdated::class,

View File

@ -170,6 +170,9 @@ trait MockAccountData
} }
$this->account = Account::factory()->create(); $this->account = Account::factory()->create();
$this->account->num_users = 3;
$this->account->save();
$this->company = Company::factory()->create([ $this->company = Company::factory()->create([
'account_id' => $this->account->id, 'account_id' => $this->account->id,
]); ]);