Permalink
Browse files

Fixed variable name.

  • Loading branch information...
1 parent 4e480ea commit 12392b6285edf8f02c3f0a9c258ddca67e9da40a @jrbasso jrbasso committed Apr 25, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Cake/TestSuite/Fixture/CakeFixtureManager.php
@@ -193,8 +193,8 @@ public function load(CakeTestCase $test) {
return;
}
- $nested = $this->db->nestedTransaction;
- $this->db->nestedTransaction = false;
+ $nested = $test->db->nestedTransaction;
+ $test->db->nestedTransaction = false;
$test->db->begin();
foreach ($fixtures as $f) {
if (!empty($this->_loaded[$f])) {
@@ -205,7 +205,7 @@ public function load(CakeTestCase $test) {
}
}
$test->db->commit();
- $this->db->nestedTransaction = $nested;
+ $test->db->nestedTransaction = $nested;
}
/**

0 comments on commit 12392b6

Please sign in to comment.