summaryrefslogtreecommitdiff
path: root/modules/gallery
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-01-17 21:03:15 -0800
committerBharat Mediratta <bharat@menalto.com>2010-01-17 21:03:15 -0800
commit710e472edc95dd4b7a192348e11b81636ac83e52 (patch)
tree6a72d719acfd907a3b17fc2582629cfaec86c483 /modules/gallery
parentb35a3c8b81cc4867fc6143b3a401937b20ea82e2 (diff)
Fix rename_album_test()
Diffstat (limited to 'modules/gallery')
-rw-r--r--modules/gallery/tests/Item_Model_Test.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/gallery/tests/Item_Model_Test.php b/modules/gallery/tests/Item_Model_Test.php
index 52e0f799..a2720f7d 100644
--- a/modules/gallery/tests/Item_Model_Test.php
+++ b/modules/gallery/tests/Item_Model_Test.php
@@ -88,6 +88,7 @@ class Item_Model_Test extends Unit_Test_Case {
public function rename_album_test() {
$album = test::random_album();
$photo = test::random_photo($album);
+ $album->reload();
file_put_contents($photo->thumb_path(), "thumb");
file_put_contents($photo->resize_path(), "resize");
@@ -98,7 +99,8 @@ class Item_Model_Test extends Unit_Test_Case {
$new_album_name = rand();
// Now rename the album
- $album->rename($new_album_name)->save();
+ $album->name = $new_album_name;
+ $album->save();
$photo->reload();
// Expected: