user creating fixed for unit tests

This commit is contained in:
Sevan Nerse 2022-07-28 20:44:25 +03:00
parent 96b12323a9
commit 4263563042

View File

@ -83,6 +83,10 @@ class CreateUser extends Job implements HasOwner, HasSource, ShouldCreate
protected function shouldSendInvitation()
{
if (app()->runningUnitTests()) {
return true;
}
if (app()->runningInConsole()) {
return false;
}