Skip to content

Commit ba308fc

Browse files
authored
Call forgetBootstrappers after test (#53)
1 parent b2e273d commit ba308fc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Codeception/Module/Laravel.php

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
use Codeception\Subscriber\ErrorHandler;
2525
use Codeception\TestInterface;
2626
use Codeception\Util\ReflectionHelper;
27+
use Illuminate\Console\Application as Artisan;
2728
use Illuminate\Contracts\Config\Repository as Config;
2829
use Illuminate\Contracts\Foundation\Application as ApplicationContract;
2930
use Illuminate\Database\Connection;
@@ -261,6 +262,8 @@ public function _after(TestInterface $test)
261262
unset($this->app[\Faker\Generator::class]);
262263
unset($this->app[\Illuminate\Database\Eloquent\Factory::class]);
263264
}
265+
266+
Artisan::forgetBootstrappers();
264267
}
265268

266269
/**

0 commit comments

Comments
 (0)