summaryrefslogtreecommitdiff
path: root/modules/gallery
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-01-17 20:54:08 -0800
committerBharat Mediratta <bharat@menalto.com>2010-01-17 20:54:08 -0800
commitb35a3c8b81cc4867fc6143b3a401937b20ea82e2 (patch)
tree08bc373ceb36f2a652d49199858b6bccb85a4cde /modules/gallery
parent9ddb961a91f99ccc043981bbe8c8a661f9646563 (diff)
Fix rename_photo_test().
Diffstat (limited to 'modules/gallery')
-rw-r--r--modules/gallery/tests/Item_Model_Test.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gallery/tests/Item_Model_Test.php b/modules/gallery/tests/Item_Model_Test.php
index a3f590a1..52e0f799 100644
--- a/modules/gallery/tests/Item_Model_Test.php
+++ b/modules/gallery/tests/Item_Model_Test.php
@@ -72,7 +72,8 @@ class Item_Model_Test extends Unit_Test_Case {
$new_name = rand();
// Now rename it
- $item->rename($new_name)->save();
+ $item->name = $new_name;
+ $item->save();
// Expected: the name changed, the name is now baked into all paths, and all files were moved.
$this->assert_equal($new_name, $item->name);