diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-01-17 20:54:08 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-17 20:54:08 -0800 |
commit | b35a3c8b81cc4867fc6143b3a401937b20ea82e2 (patch) | |
tree | 08bc373ceb36f2a652d49199858b6bccb85a4cde | |
parent | 9ddb961a91f99ccc043981bbe8c8a661f9646563 (diff) |
Fix rename_photo_test().
-rw-r--r-- | modules/gallery/tests/Item_Model_Test.php | 3 |
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); |