summaryrefslogtreecommitdiff
path: root/modules/gallery/tests/Gallery_Installer_Test.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-12-28 23:10:05 -0800
committerBharat Mediratta <bharat@menalto.com>2010-12-28 23:10:05 -0800
commitb42fcb9cda4dafdb9db86770f54965b3fb2fc7ab (patch)
treeef645fcb4a409cfd0c0eefcdb60c841b68d84258 /modules/gallery/tests/Gallery_Installer_Test.php
parent9f3c6e4bee9f2ccae04b7b241c07845b9f233cfd (diff)
Use db::expr instead of "new Database_Expression". Resolves #1560.
Diffstat (limited to 'modules/gallery/tests/Gallery_Installer_Test.php')
-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 67e712de..d34c3b0e 100644
--- a/modules/gallery/tests/Gallery_Installer_Test.php
+++ b/modules/gallery/tests/Gallery_Installer_Test.php
@@ -35,7 +35,7 @@ class Gallery_Installer_Test extends Gallery_Unit_Test_Case {
public function install_creates_root_item_test() {
$max_right_ptr = ORM::factory("item")
- ->select(new Database_Expression("MAX(`right_ptr`) AS `right_ptr`"))
+ ->select(db::expr("MAX(`right_ptr`) AS `right_ptr`"))
->find()->right_ptr;
$root = ORM::factory('item')->find(1);
$this->assert_equal("Gallery", $root->title);