Do not install extra modules when testing.
This commit is contained in:
parent
633fc0e2fc
commit
383b309716
@ -6,6 +6,7 @@ use App\Events\Module\Installed as Event;
|
|||||||
use App\Jobs\Install\DownloadModule;
|
use App\Jobs\Install\DownloadModule;
|
||||||
use App\Jobs\Install\InstallModule;
|
use App\Jobs\Install\InstallModule;
|
||||||
use App\Traits\Jobs;
|
use App\Traits\Jobs;
|
||||||
|
use Illuminate\Support\Facades\App;
|
||||||
|
|
||||||
class InstallExtraModules
|
class InstallExtraModules
|
||||||
{
|
{
|
||||||
@ -19,6 +20,10 @@ class InstallExtraModules
|
|||||||
*/
|
*/
|
||||||
public function handle(Event $event)
|
public function handle(Event $event)
|
||||||
{
|
{
|
||||||
|
if (App::environment('testing')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$module = module($event->alias);
|
$module = module($event->alias);
|
||||||
|
|
||||||
$extra_modules = $module->get('extra-modules');
|
$extra_modules = $module->get('extra-modules');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user