From 2153c43c7ab3fde76f763059592ecb2890554701 Mon Sep 17 00:00:00 2001 From: Ali Sasani Date: Mon, 12 Aug 2024 00:16:39 +0330 Subject: [PATCH] [test] fix test, delete all module after each test --- tests/Commands/Make/ModuleMakeCommandTest.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/Commands/Make/ModuleMakeCommandTest.php b/tests/Commands/Make/ModuleMakeCommandTest.php index 773bf8081..364483391 100644 --- a/tests/Commands/Make/ModuleMakeCommandTest.php +++ b/tests/Commands/Make/ModuleMakeCommandTest.php @@ -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(); }