Skip to content

Commit

Permalink
[test] fix test, delete all module after each test
Browse files Browse the repository at this point in the history
  • Loading branch information
alissn committed Aug 11, 2024
1 parent 041da93 commit 2153c43
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/Commands/Make/ModuleMakeCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,8 @@ public function setUp(): void

public function tearDown(): void
{
$this->finder->deleteDirectory($this->modulePath);
if ($this->finder->isDirectory(base_path('modules/ModuleName'))) {
$this->finder->deleteDirectory(base_path('modules/ModuleName'));
}
$this->artisan('module:delete', ['--all' => true, '--force' => true]);

$this->activator->reset();
parent::tearDown();
}
Expand Down

0 comments on commit 2153c43

Please sign in to comment.