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')); + } }