Fixing test case for sqlite

This commit is contained in:
José Lorenzo Rodríguez 2010-11-29 20:52:32 -04:30
parent a791687784
commit 0d93520e0a
2 changed files with 1 additions and 3 deletions

View file

@ -368,8 +368,7 @@ class TranslateBehavior extends ModelBehavior {
} elseif (empty($model->translateTable) && empty($model->translateModel)) {
$this->runtime[$model->alias]['model']->setSource('i18n');
}
$model =& $this->runtime[$model->alias]['model'];
return $model;
return $this->runtime[$model->alias]['model'];
}
/**

View file

@ -1431,7 +1431,6 @@ class ScopedTreeTest extends CakeTestCase {
function testTranslatingTree() {
$this->Tree = new FlagTree();
$this->Tree->cacheQueries = false;
$this->Tree->translateModel = 'TranslateTreeTestModel';
$this->Tree->Behaviors->attach('Translate', array('name'));
//Save