summaryrefslogtreecommitdiff
path: root/modules/gallery
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-01-18 12:39:42 -0800
committerBharat Mediratta <bharat@menalto.com>2010-01-18 12:39:42 -0800
commita9f07986f64faf5062c2d86aa34710892d8ac8b3 (patch)
treea3f31c3681ca07a5cd729a6e28a898bb4fd5b766 /modules/gallery
parentcf236a228a8ea3316506f6d855bcade92676674c (diff)
The root parent id is 0, not null (this deviation exposed by the new lack of typecasting in ORM).
Diffstat (limited to 'modules/gallery')
-rw-r--r--modules/gallery/tests/Gallery_Installer_Test.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/tests/Gallery_Installer_Test.php b/modules/gallery/tests/Gallery_Installer_Test.php
index 43399fb4..74a07b1a 100644
--- a/modules/gallery/tests/Gallery_Installer_Test.php
+++ b/modules/gallery/tests/Gallery_Installer_Test.php
@@ -41,7 +41,7 @@ class Gallery_Installer_Test extends Unit_Test_Case {
$this->assert_equal("Gallery", $root->title);
$this->assert_equal(1, $root->left_ptr);
$this->assert_equal($max_right_ptr, $root->right_ptr);
- $this->assert_equal(null, $root->parent_id);
+ $this->assert_equal(0, $root->parent_id);
$this->assert_equal(1, $root->level);
}
}