Commit 8c00df0 1 parent 373a3a5 commit 8c00df0 Copy full SHA for 8c00df0
File tree 1 file changed +5
-1
lines changed
src/System/Integrate/Testing
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 9
9
use System \Http \Response ;
10
10
use System \Integrate \Application ;
11
11
use System \Integrate \Http \Karnel ;
12
+ use System \Integrate \ServiceProvider ;
13
+ use System \Support \Facades \Facade ;
12
14
13
15
class TestCase extends BaseTestCase
14
16
{
@@ -19,12 +21,14 @@ class TestCase extends BaseTestCase
19
21
protected function setUp (): void
20
22
{
21
23
// create app
22
- $ this ->karnel = $ this ->app ->make (Karnel::class);
24
+ $ this ->karnel = $ this ->app ->make (Karnel::class)-> bootstrap () ;
23
25
}
24
26
25
27
protected function tearDown (): void
26
28
{
27
29
$ this ->app ->flush ();
30
+ Facade::flushInstance ();
31
+ ServiceProvider::flushModule ();
28
32
unset($ this ->app );
29
33
unset($ this ->karnel );
30
34
}
You can’t perform that action at this time.
0 commit comments