Skip to content

Commit

Permalink
fixed easy installation
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-to committed Dec 14, 2022
1 parent 6704727 commit b7198ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ protected function initServiceProvider(): void
$this->getStub('MoonShineServiceProvider')
);

$this->registerServiceProvider();
if(!app()->runningUnitTests()) {
$this->registerServiceProvider();
}

$this->components->task('Service Provider created');
}
Expand Down
2 changes: 2 additions & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ protected function setUp(): void
parent::setUp();

$this->artisan('moonshine:install');
$this->artisan('cache:clear');
$this->artisan('view:clear');

$this->refreshApplication();
$this->loadLaravelMigrations();
Expand Down

0 comments on commit b7198ef

Please sign in to comment.