diff --git a/tests/Integration/EventTest.php b/tests/Integration/EventTest.php index a9ab59282f3b..9127ff54c8d7 100644 --- a/tests/Integration/EventTest.php +++ b/tests/Integration/EventTest.php @@ -677,7 +677,6 @@ class EventTest extends TestCase { $this->withoutMiddleware(PasswordProtection::class); - $this->expectsEvents([ UserWasCreated::class, UserWasUpdated::class, diff --git a/tests/MockAccountData.php b/tests/MockAccountData.php index cd9c0f4b1335..bbd8b44adb62 100644 --- a/tests/MockAccountData.php +++ b/tests/MockAccountData.php @@ -170,6 +170,9 @@ trait MockAccountData } $this->account = Account::factory()->create(); + $this->account->num_users = 3; + $this->account->save(); + $this->company = Company::factory()->create([ 'account_id' => $this->account->id, ]);