From 7cb8274e02f0b7ba4aff6c3431c47330a90f19f2 Mon Sep 17 00:00:00 2001 From: Milwad Date: Fri, 20 Sep 2024 16:59:04 +0330 Subject: [PATCH] Update TestCase.php --- tests/TestCase.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/TestCase.php b/tests/TestCase.php index 2e0bed4..88c7a2d 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -2,6 +2,7 @@ namespace Milwad\LaravelCrod\Tests; +use Illuminate\Support\Facades\File; use Milwad\LaravelCrod\LaravelCrodServiceProvider; class TestCase extends \Orchestra\Testbench\TestCase @@ -19,4 +20,17 @@ protected function getPackageProviders($app) LaravelCrodServiceProvider::class, ]; } + + /** + * Setup the test environment. + */ + protected function setUp(): void + { + parent::setUp(); + + File::deleteDirectory(base_path('Modules')); + File::deleteDirectory(base_path('App\Repositories')); + File::deleteDirectory(base_path('App\Services')); + File::deleteDirectory(base_path('Database\Factories')); + } }