Skip to content

Commit

Permalink
Fix null column errors in SQLite and Postgres.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 2, 2012
1 parent cc6b699 commit ddd3baf
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/Cake/Test/Case/Model/Behavior/TreeBehaviorScopedTest.php
Expand Up @@ -175,6 +175,7 @@ public function testTranslatingTree() {
$this->Tree->locale = 'eng';
$data = array('FlagTree' => array(
'title' => 'name #1',
'name' => 'test',
'locale' => 'eng',
'parent_id' => null,
));
Expand All @@ -183,7 +184,7 @@ public function testTranslatingTree() {
$expected = array(array('FlagTree' => array(
'id' => 1,
'title' => 'name #1',
'name' => '',
'name' => 'test',
'parent_id' => null,
'lft' => 1,
'rght' => 2,
Expand All @@ -201,7 +202,7 @@ public function testTranslatingTree() {
$expected = array(array('FlagTree' => array(
'id' => 1,
'title' => 'Named 2',
'name' => '',
'name' => 'test',
'parent_id' => null,
'lft' => 1,
'rght' => 2,
Expand All @@ -218,6 +219,7 @@ public function testTranslatingTree() {
'id' => 1,
'parent_id' => null,
'title' => 'namen #1',
'name' => 'test',
'locale' => 'deu',
));
$this->Tree->save($data);
Expand All @@ -229,7 +231,7 @@ public function testTranslatingTree() {
'FlagTree' => array(
'id' => 1,
'title' => 'namen #1',
'name' => '',
'name' => 'test',
'parent_id' => null,
'lft' => 1,
'rght' => 2,
Expand All @@ -244,6 +246,7 @@ public function testTranslatingTree() {
$this->Tree->locale = 'eng';
$data = array(
'title' => array('eng' => 'New title', 'spa' => 'Nuevo leyenda'),
'name' => 'test',
'parent_id' => null
);
$this->Tree->create($data);
Expand All @@ -260,7 +263,7 @@ public function testTranslatingTree() {
'id' => 2,
'parent_id' => null,
'locale' => 'eng',
'name' => '',
'name' => 'test',
'title' => 'New title',
'flag' => 0,
'lft' => 3,
Expand Down

0 comments on commit ddd3baf

Please sign in to comment.