Skip to content

Commit

Permalink
Disabling nested transaction for fixtures.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbasso committed Apr 25, 2012
1 parent 74830b9 commit 4e480ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Cake/TestSuite/Fixture/CakeFixtureManager.php
Expand Up @@ -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])) {
Expand All @@ -203,6 +205,7 @@ public function load(CakeTestCase $test) {
}
}
$test->db->commit();
$this->db->nestedTransaction = $nested;
}

/**
Expand Down

0 comments on commit 4e480ea

Please sign in to comment.