Skip to content

Commit

Permalink
Code style
Browse files Browse the repository at this point in the history
  • Loading branch information
inxilpro committed Apr 3, 2024
1 parent bd13fba commit 48d64be
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions src/Console/Commands/Make/MakeModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ public function handle()

$this->newLine();

if ($this->shouldAbortToPublishConfig()) {
return 0;
}
if ($this->shouldAbortToPublishConfig()) {
return 0;
}

$this->ensureModulesDirectoryExists();
$this->ensureModulesDirectoryExists();

$this->writeStubs();
$this->writeStubs();
$this->updateCoreComposerConfig();

$this->call(ModulesClear::class);
Expand Down
18 changes: 9 additions & 9 deletions tests/Commands/Make/MakeModuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,16 @@ public function test_it_prompts_on_first_module_if_no_custom_namespace_is_set():
$this->assertTrue($fs->isDirectory($this->getBasePath().'/app-modules/test-module-two'));
}

public function test_it_does_not_create_an_empty_directory_if_prompt_on_first_module_if_no_custom_namespace_is_set_is_rejected(): void
{
$fs = $this->filesystem();
public function test_it_does_not_create_an_empty_directory_if_prompt_on_first_module_if_no_custom_namespace_is_set_is_rejected(): void
{
$fs = $this->filesystem();

$this->artisan(MakeModule::class, ['name' => 'test-module'])
->expectsQuestion('Would you like to cancel and configure your module namespace first?', true)
->assertExitCode(0);
$this->artisan(MakeModule::class, ['name' => 'test-module'])
->expectsQuestion('Would you like to cancel and configure your module namespace first?', true)
->assertExitCode(0);

Modules::reload();
Modules::reload();

$this->assertFalse($fs->isDirectory($this->getBasePath().'/app-modules/test-module'));
}
$this->assertFalse($fs->isDirectory($this->getBasePath().'/app-modules/test-module'));
}
}

0 comments on commit 48d64be

Please sign in to comment.