File tree Expand file tree Collapse file tree 3 files changed +2
-8
lines changed
src/Illuminate/Foundation/Testing Expand file tree Collapse file tree 3 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public function beginDatabaseTransaction()
3333 $ connection ->unsetEventDispatcher ();
3434 $ connection ->rollBack ();
3535 $ connection ->setEventDispatcher ($ dispatcher );
36- $ database -> purge ( $ name );
36+ $ connection -> disconnect ( );
3737 }
3838 });
3939 }
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ public function beginDatabaseTransaction()
109109 $ connection ->unsetEventDispatcher ();
110110 $ connection ->rollBack ();
111111 $ connection ->setEventDispatcher ($ dispatcher );
112- $ database -> purge ( $ name );
112+ $ connection -> disconnect ( );
113113 }
114114 });
115115 }
Original file line number Diff line number Diff line change @@ -197,12 +197,6 @@ protected function tearDown(): void
197197
198198 ParallelTesting::callTearDownTestCaseCallbacks ($ this );
199199
200- $ database = $ this ->app ['db ' ] ?? null ;
201-
202- foreach (array_keys ($ database ?->getConnections() ?? []) as $ name ) {
203- $ database ->purge ($ name );
204- }
205-
206200 $ this ->app ->flush ();
207201
208202 $ this ->app = null ;
You can’t perform that action at this time.
0 commit comments