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()
33
33
$ connection ->unsetEventDispatcher ();
34
34
$ connection ->rollBack ();
35
35
$ connection ->setEventDispatcher ($ dispatcher );
36
- $ database -> purge ( $ name );
36
+ $ connection -> disconnect ( );
37
37
}
38
38
});
39
39
}
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ public function beginDatabaseTransaction()
109
109
$ connection ->unsetEventDispatcher ();
110
110
$ connection ->rollBack ();
111
111
$ connection ->setEventDispatcher ($ dispatcher );
112
- $ database -> purge ( $ name );
112
+ $ connection -> disconnect ( );
113
113
}
114
114
});
115
115
}
Original file line number Diff line number Diff line change @@ -197,12 +197,6 @@ protected function tearDown(): void
197
197
198
198
ParallelTesting::callTearDownTestCaseCallbacks ($ this );
199
199
200
- $ database = $ this ->app ['db ' ] ?? null ;
201
-
202
- foreach (array_keys ($ database ?->getConnections() ?? []) as $ name ) {
203
- $ database ->purge ($ name );
204
- }
205
-
206
200
$ this ->app ->flush ();
207
201
208
202
$ this ->app = null ;
You can’t perform that action at this time.
0 commit comments