summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-01-17 23:50:42 -0800
committerBharat Mediratta <bharat@menalto.com>2010-01-17 23:50:42 -0800
commit53735f6b166fe823f5606e6f3cf527d98105593c (patch)
treee268949597462065a51c2b27d195d5c2f057e49b
parent31ecb009bac2d9177329aafb9596fbfa65bd6a04 (diff)
Convert a $root to item::root() to fix a test.
-rw-r--r--modules/gallery/tests/Item_Model_Test.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/tests/Item_Model_Test.php b/modules/gallery/tests/Item_Model_Test.php
index ea6c2af6..c1df70c6 100644
--- a/modules/gallery/tests/Item_Model_Test.php
+++ b/modules/gallery/tests/Item_Model_Test.php
@@ -237,7 +237,7 @@ class Item_Model_Test extends Unit_Test_Case {
$photo2 = test::random_photo($album);
try {
- $photo2->move_to($root);
+ $photo2->move_to(item::root());
} catch (Exception $e) {
// pass
$this->assert_true(strpos($e->getMessage(), "INVALID_MOVE_TARGET_EXISTS") !== false,