8000 clear resolved instances · laravel/lumen-framework@c5d599b · GitHub
[go: up one dir, main page]

Skip to content

Commit c5d599b

Browse files
committed
clear resolved instances
1 parent 3bfa90d commit c5d599b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Testing/ApplicationTrait.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php namespace Laravel\Lumen\Testing;
22

33
use Illuminate\Http\Request;
4+
use Illuminate\Support\Facades\Facade;
45
use Illuminate\Contracts\Auth\Authenticatable as UserContract;
56

67
trait ApplicationTrait
78
{
8-
99
/**
1010
* The application instance.
1111
*
@@ -37,6 +37,8 @@ protected function refreshApplication()
3737
putenv('APP_ENV=testing');
3838

3939
$this->app = $this->createApplication();
40+
41+
Facade::clearResolvedInstances();
4042
}
4143

4244
/**

0 commit comments

Comments
 (0)
0