invitations should work on tests

This commit is contained in:
Sevan Nerse 2022-06-29 22:39:57 +03:00
parent 67db8d113f
commit 62513384e8

View File

@ -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)); $this->dispatch(new CreateInvitation($this->model));
} }
}); });