From 62513384e8d8b4501713c799fb2973e84202b0f3 Mon Sep 17 00:00:00 2001 From: Sevan Nerse Date: Wed, 29 Jun 2022 22:39:57 +0300 Subject: [PATCH] invitations should work on tests --- app/Jobs/Auth/CreateUser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Jobs/Auth/CreateUser.php b/app/Jobs/Auth/CreateUser.php index 1e688d146..ce341f03b 100644 --- a/app/Jobs/Auth/CreateUser.php +++ b/app/Jobs/Auth/CreateUser.php @@ -71,7 +71,7 @@ class CreateUser extends Job implements HasOwner, HasSource, ShouldCreate ]); } - if (! app()->runningInConsole() && ! request()->isInstall()) { + if ((! app()->runningInConsole() && ! request()->isInstall()) || app()->runningUnitTests()) { $this->dispatch(new CreateInvitation($this->model)); } });