user creating fixed for unit tests
This commit is contained in:
		| @@ -83,6 +83,10 @@ class CreateUser extends Job implements HasOwner, HasSource, ShouldCreate | |||||||
|  |  | ||||||
|     protected function shouldSendInvitation() |     protected function shouldSendInvitation() | ||||||
|     { |     { | ||||||
|  |         if (app()->runningUnitTests()) { | ||||||
|  |             return true; | ||||||
|  |         } | ||||||
|  |  | ||||||
|         if (app()->runningInConsole()) { |         if (app()->runningInConsole()) { | ||||||
|             return false; |             return false; | ||||||
|         } |         } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user