Permalink
Browse files

Fix null column errors in SQLite and Postgres.

  • Loading branch information...
1 parent cc6b699 commit ddd3baf7038e146cc1008481cce07545d3c5d529 @markstory markstory committed Nov 2, 2012
Showing with 7 additions and 4 deletions.
  1. +7 −4 lib/Cake/Test/Case/Model/Behavior/TreeBehaviorScopedTest.php
@@ -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,
));
@@ -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,
@@ -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,
@@ -218,6 +219,7 @@ public function testTranslatingTree() {
'id' => 1,
'parent_id' => null,
'title' => 'namen #1',
+ 'name' => 'test',
'locale' => 'deu',
));
$this->Tree->save($data);
@@ -229,7 +231,7 @@ public function testTranslatingTree() {
'FlagTree' => array(
'id' => 1,
'title' => 'namen #1',
- 'name' => '',
+ 'name' => 'test',
'parent_id' => null,
'lft' => 1,
'rght' => 2,
@@ -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);
@@ -260,7 +263,7 @@ public function testTranslatingTree() {
'id' => 2,
'parent_id' => null,
'locale' => 'eng',
- 'name' => '',
+ 'name' => 'test',
'title' => 'New title',
'flag' => 0,
'lft' => 3,

0 comments on commit ddd3baf

Please sign in to comment.