Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Disabling nested transaction for fixtures.

  • Loading branch information...
commit 4e480eaca517cd85f27d0b10d8bfc34bb1214714 1 parent 74830b9
@jrbasso jrbasso authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/Cake/TestSuite/Fixture/CakeFixtureManager.php
View
3  lib/Cake/TestSuite/Fixture/CakeFixtureManager.php
@@ -193,6 +193,8 @@ public function load(CakeTestCase $test) {
return;
}
+ $nested = $this->db->nestedTransaction;
+ $this->db->nestedTransaction = false;
$test->db->begin();
foreach ($fixtures as $f) {
if (!empty($this->_loaded[$f])) {
@@ -203,6 +205,7 @@ public function load(CakeTestCase $test) {
}
}
$test->db->commit();
+ $this->db->nestedTransaction = $nested;
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.