File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -223,17 +223,17 @@ public function _after(TestInterface $test)
223
223
$ _COOKIE = [];
224
224
$ _REQUEST = [];
225
225
226
+ if ($ this ->config ['transaction ' ] && $ this ->transaction ) {
227
+ $ this ->transaction ->rollBack ();
228
+ $ this ->debugSection ('Database ' , 'Transaction cancelled; all changes reverted. ' );
229
+ }
230
+
226
231
if ($ this ->config ['cleanup ' ]) {
227
232
foreach ($ this ->loadedFixtures as $ fixture ) {
228
233
$ fixture ->unloadFixtures ();
229
234
}
230
235
$ this ->loadedFixtures = [];
231
236
}
232
-
233
- if ($ this ->config ['transaction ' ] && $ this ->transaction ) {
234
- $ this ->transaction ->rollBack ();
235
- $ this ->debugSection ('Database ' , 'Transaction cancelled; all changes reverted. ' );
236
- }
237
237
238
238
if ($ this ->client ) {
239
239
$ this ->client ->resetPersistentVars ();
You can’t perform that action at this time.
0 commit comments