diff --git a/src/Commands/ModuleMakeCommand.php b/src/Commands/ModuleMakeCommand.php index e3fb355..563fb39 100644 --- a/src/Commands/ModuleMakeCommand.php +++ b/src/Commands/ModuleMakeCommand.php @@ -179,7 +179,6 @@ private function generatePestFiles(): void ]); } - private function installModule(): bool { $this->comment('Activating the new Module'); diff --git a/src/Commands/ResourceMakeCommand.php b/src/Commands/ResourceMakeCommand.php new file mode 100644 index 0000000..2f064ba --- /dev/null +++ b/src/Commands/ResourceMakeCommand.php @@ -0,0 +1,19 @@ + $this->moduleTitle]) ->expectsOutput('Activating module: '.$this->moduleName) ->expectsOutput('./composer.json has been updated') @@ -23,7 +23,7 @@ ->doesntExpectOutputToContain('Your requirements could not be resolved to an installable set of packages') ->expectsOutputToContain('Generating optimized autoload files') ->assertSuccessful(); -}); +});*/ test('should not override existing module unless the user confirms', function () { artisan('modular:make', ['name' => $this->moduleTitle])