From 1b2972da7551fe5ee891c340597bf52445c000f9 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 7 Nov 2021 22:44:39 +1100 Subject: [PATCH] Fixes for tests --- tests/Integration/EventTest.php | 1 - tests/MockAccountData.php | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Integration/EventTest.php b/tests/Integration/EventTest.php index a9ab59282f..9127ff54c8 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 cd9c0f4b13..bbd8b44adb 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, ]);