mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-30 11:40:43 -04:00
Fix rename_photo_test().
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user