summaryrefslogtreecommitdiff
path: root/core/tests/Core_Installer_Test.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/tests/Core_Installer_Test.php')
-rw-r--r--core/tests/Core_Installer_Test.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/tests/Core_Installer_Test.php b/core/tests/Core_Installer_Test.php
index 1cfd09cb..89fe1f8e 100644
--- a/core/tests/Core_Installer_Test.php
+++ b/core/tests/Core_Installer_Test.php
@@ -37,9 +37,12 @@ class Core_Installer_Test extends Unit_Test_Case {
}
public function install_creates_root_item_test() {
- $max_right =
- Database::instance()->query("SELECT MAX(`right`) AS `right` FROM items")->current()->right;
+ //$max_right =
+ // Database::instance()->query("SELECT MAX(`right`) AS `right` FROM items")->current()->right;
+ $max_right = ORM::factory("item")
+ ->select("MAX(`right`) AS `right`")
+ ->find()->right;
$root = ORM::factory('item')->find(1);
$this->assert_equal("Gallery", $root->title);
$this->assert_equal(1, $root->left);