]> BookStack Code Mirror - bookstack/blobdiff - tests/TestCase.php
Made adjustments to fit copied work into dev branch
[bookstack] / tests / TestCase.php
index 70fd0da1d2719e90ead4389a51cde9d2db3794e9..a5d75655cb577dfb0eff09bff07d2c15e96e7f92 100644 (file)
@@ -153,9 +153,12 @@ abstract class TestCase extends BaseTestCase
 
         DB::purge();
         config()->set('database.connections.mysql_testing.database', $database);
+        DB::beginTransaction();
 
         $callback();
 
+        DB::rollBack();
+
         if (is_null($originalVal)) {
             unset($_SERVER[$name]);
         } else {