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

Lines changed: 3 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy