Merge pull request #2560 from sevannerse/tests-fixed

user creating fixed for unit tests
This commit is contained in:
Cüneyt Şentürk 2022-07-28 22:20:08 +03:00 committed by GitHub
commit 1dfe8caa14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}