Skip to content

Commit

Permalink
Call forgetBootstrappers after test (#53)
Browse files Browse the repository at this point in the history
(cherry picked from commit ba308fc)
  • Loading branch information
asanikovich authored and TavoNiievez committed Jan 13, 2025
1 parent 1873349 commit adc7510
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 adc7510

Please sign in to comment.