Use db::expr instead of "new Database_Expression". Resolves #1560.

This commit is contained in:
Bharat Mediratta
2010-12-28 23:10:05 -08:00
parent 9f3c6e4bee
commit b42fcb9cda
10 changed files with 24 additions and 24 deletions

View File

@@ -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);