mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing test case for sqlite
This commit is contained in:
parent
a791687784
commit
0d93520e0a
2 changed files with 1 additions and 3 deletions
|
@ -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'];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue