]>
BookStack Code Mirror - bookstack/blobdiff - tests/TestCase.php
projects
/
bookstack
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Made adjustments to fit copied work into dev branch
[bookstack]
/
tests
/
TestCase.php
diff --git
a/tests/TestCase.php
b/tests/TestCase.php
index 70fd0da1d2719e90ead4389a51cde9d2db3794e9..a5d75655cb577dfb0eff09bff07d2c15e96e7f92 100644
(file)
--- a/
tests/TestCase.php
+++ b/
tests/TestCase.php
@@
-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 {