mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix null column errors in SQLite and Postgres.
This commit is contained in:
parent
cc6b699db4
commit
ddd3baf703
1 changed files with 7 additions and 4 deletions
|
@ -175,6 +175,7 @@ class TreeBehaviorScopedTest extends CakeTestCase {
|
||||||
$this->Tree->locale = 'eng';
|
$this->Tree->locale = 'eng';
|
||||||
$data = array('FlagTree' => array(
|
$data = array('FlagTree' => array(
|
||||||
'title' => 'name #1',
|
'title' => 'name #1',
|
||||||
|
'name' => 'test',
|
||||||
'locale' => 'eng',
|
'locale' => 'eng',
|
||||||
'parent_id' => null,
|
'parent_id' => null,
|
||||||
));
|
));
|
||||||
|
@ -183,7 +184,7 @@ class TreeBehaviorScopedTest extends CakeTestCase {
|
||||||
$expected = array(array('FlagTree' => array(
|
$expected = array(array('FlagTree' => array(
|
||||||
'id' => 1,
|
'id' => 1,
|
||||||
'title' => 'name #1',
|
'title' => 'name #1',
|
||||||
'name' => '',
|
'name' => 'test',
|
||||||
'parent_id' => null,
|
'parent_id' => null,
|
||||||
'lft' => 1,
|
'lft' => 1,
|
||||||
'rght' => 2,
|
'rght' => 2,
|
||||||
|
@ -201,7 +202,7 @@ class TreeBehaviorScopedTest extends CakeTestCase {
|
||||||
$expected = array(array('FlagTree' => array(
|
$expected = array(array('FlagTree' => array(
|
||||||
'id' => 1,
|
'id' => 1,
|
||||||
'title' => 'Named 2',
|
'title' => 'Named 2',
|
||||||
'name' => '',
|
'name' => 'test',
|
||||||
'parent_id' => null,
|
'parent_id' => null,
|
||||||
'lft' => 1,
|
'lft' => 1,
|
||||||
'rght' => 2,
|
'rght' => 2,
|
||||||
|
@ -218,6 +219,7 @@ class TreeBehaviorScopedTest extends CakeTestCase {
|
||||||
'id' => 1,
|
'id' => 1,
|
||||||
'parent_id' => null,
|
'parent_id' => null,
|
||||||
'title' => 'namen #1',
|
'title' => 'namen #1',
|
||||||
|
'name' => 'test',
|
||||||
'locale' => 'deu',
|
'locale' => 'deu',
|
||||||
));
|
));
|
||||||
$this->Tree->save($data);
|
$this->Tree->save($data);
|
||||||
|
@ -229,7 +231,7 @@ class TreeBehaviorScopedTest extends CakeTestCase {
|
||||||
'FlagTree' => array(
|
'FlagTree' => array(
|
||||||
'id' => 1,
|
'id' => 1,
|
||||||
'title' => 'namen #1',
|
'title' => 'namen #1',
|
||||||
'name' => '',
|
'name' => 'test',
|
||||||
'parent_id' => null,
|
'parent_id' => null,
|
||||||
'lft' => 1,
|
'lft' => 1,
|
||||||
'rght' => 2,
|
'rght' => 2,
|
||||||
|
@ -244,6 +246,7 @@ class TreeBehaviorScopedTest extends CakeTestCase {
|
||||||
$this->Tree->locale = 'eng';
|
$this->Tree->locale = 'eng';
|
||||||
$data = array(
|
$data = array(
|
||||||
'title' => array('eng' => 'New title', 'spa' => 'Nuevo leyenda'),
|
'title' => array('eng' => 'New title', 'spa' => 'Nuevo leyenda'),
|
||||||
|
'name' => 'test',
|
||||||
'parent_id' => null
|
'parent_id' => null
|
||||||
);
|
);
|
||||||
$this->Tree->create($data);
|
$this->Tree->create($data);
|
||||||
|
@ -260,7 +263,7 @@ class TreeBehaviorScopedTest extends CakeTestCase {
|
||||||
'id' => 2,
|
'id' => 2,
|
||||||
'parent_id' => null,
|
'parent_id' => null,
|
||||||
'locale' => 'eng',
|
'locale' => 'eng',
|
||||||
'name' => '',
|
'name' => 'test',
|
||||||
'title' => 'New title',
|
'title' => 'New title',
|
||||||
'flag' => 0,
|
'flag' => 0,
|
||||||
'lft' => 3,
|
'lft' => 3,
|
||||||
|
|
Loading…
Reference in a new issue