mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-01 12:40:45 -04:00
Rename columns that use reserved SQL words : items.left and items.right
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user