Skip to content

Commit

Permalink
Update TestCase.php
Browse files Browse the repository at this point in the history
  • Loading branch information
milwad-dev committed Sep 20, 2024
1 parent 9963d7c commit 7cb8274
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Milwad\LaravelCrod\Tests;

use Illuminate\Support\Facades\File;
use Milwad\LaravelCrod\LaravelCrodServiceProvider;

class TestCase extends \Orchestra\Testbench\TestCase
Expand All @@ -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'));
}
}

0 comments on commit 7cb8274

Please sign in to comment.