Skip to content

Commit

Permalink
Revert forced composeReload()
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperTey committed Sep 2, 2024
1 parent b54daf6 commit 51a4807
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,11 @@
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\File;
use Lunarstorm\LaravelDDD\LaravelDDDServiceProvider;
use Lunarstorm\LaravelDDD\Support\DomainCache;
use Orchestra\Testbench\TestCase as Orchestra;
use Symfony\Component\Process\Process;

class TestCase extends Orchestra
{
protected $enablesPackageDiscoveries = true;

public static $configValues = [];

protected function setUp(): void
Expand Down Expand Up @@ -156,16 +153,15 @@ protected function cleanSlate()
File::deleteDirectory(base_path('src/Domains'));
File::deleteDirectory(app_path('Models'));

DomainCache::clear();

$this->composerReload();
File::deleteDirectory(base_path('bootstrap/cache/ddd'));
}

protected function setupTestApplication()
{
File::copyDirectory(__DIR__.'/.skeleton/app', app_path());
File::copyDirectory(__DIR__.'/.skeleton/database', base_path('database'));
File::copyDirectory(__DIR__.'/.skeleton/src/Domain', base_path('src/Domain'));
File::copy(__DIR__.'/.skeleton/bootstrap/providers.php', base_path('bootstrap/providers.php'));
File::ensureDirectoryExists(app_path('Models'));

$this->setDomainPathInComposer('Domain', 'src/Domain');
Expand Down

0 comments on commit 51a4807

Please sign in to comment.