diff options
author | Andy Staudacher <andy.st@gmail.com> | 2009-07-26 22:45:53 -0700 |
---|---|---|
committer | Andy Staudacher <andy.st@gmail.com> | 2009-07-26 22:45:53 -0700 |
commit | 570e0b0267a2a7acd00f1936a62f13f7f2e973c9 (patch) | |
tree | 19ecd83a71f281ba72734a3dbc7ed53aeaa3382e /modules/gallery/tests/Gallery_Installer_Test.php | |
parent | a7af9bb456fa840d0be2f83145a642e202be3325 (diff) | |
parent | 23bb6eb7e35637c8a2124216dbb6d3246ad3d702 (diff) |
Merge branch 'master' of git://github.com/rledisez/gallery3 into rledisez/master
Diffstat (limited to 'modules/gallery/tests/Gallery_Installer_Test.php')
-rw-r--r-- | modules/gallery/tests/Gallery_Installer_Test.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/gallery/tests/Gallery_Installer_Test.php b/modules/gallery/tests/Gallery_Installer_Test.php index 27157d6e..36ced2bb 100644 --- a/modules/gallery/tests/Gallery_Installer_Test.php +++ b/modules/gallery/tests/Gallery_Installer_Test.php @@ -34,13 +34,13 @@ class Gallery_Installer_Test extends Unit_Test_Case { } public function install_creates_root_item_test() { - $max_right = ORM::factory("item") - ->select("MAX(`right`) AS `right`") - ->find()->right; + $max_right_ptr = ORM::factory("item") + ->select("MAX(`right_ptr`) AS `right_ptr`") + ->find()->right_ptr; $root = ORM::factory('item')->find(1); $this->assert_equal("Gallery", $root->title); - $this->assert_equal(1, $root->left); - $this->assert_equal($max_right, $root->right); + $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(1, $root->level); } |