Skip to content

Commit

Permalink
Fix mistake with fixture properties
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed May 30, 2013
1 parent c3b2d86 commit 13ce406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/TestSuite/Fixture/FixtureManager.php
Expand Up @@ -240,7 +240,7 @@ public function loadSingle($name, $db = null, $dropTables = true) {
if (isset($this->_fixtureMap[$name])) {
$fixture = $this->_fixtureMap[$name];
if (!$db) {
$db = ConnectionManager::getDataSource($fixture->useDbConfig);
$db = ConnectionManager::getDataSource($fixture->connection);
}
$this->_setupTable($fixture, $db, $dropTables);
$fixture->truncate($db);
Expand Down

0 comments on commit 13ce406

Please sign in to comment.