Skip to content

Commit

Permalink
Call forgetBootstrappers after test
Browse files Browse the repository at this point in the history
  • Loading branch information
asanikovich authored Mar 9, 2024
1 parent 5c1657d commit 0d3f172
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Codeception/Module/Laravel.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
use Codeception\Subscriber\ErrorHandler;
use Codeception\TestInterface;
use Codeception\Util\ReflectionHelper;
use Illuminate\Console\Application as Artisan;
use Illuminate\Contracts\Config\Repository as Config;
use Illuminate\Contracts\Foundation\Application as ApplicationContract;
use Illuminate\Database\Connection;
Expand Down Expand Up @@ -261,6 +262,8 @@ public function _after(TestInterface $test)
unset($this->app[\Faker\Generator::class]);
unset($this->app[\Illuminate\Database\Eloquent\Factory::class]);
}

Artisan::forgetBootstrappers();
}

/**
Expand Down

0 comments on commit 0d3f172

Please sign in to comment.