diff options
Diffstat (limited to 'modules/gallery/tests')
-rw-r--r-- | modules/gallery/tests/Item_Helper_Test.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/gallery/tests/Item_Helper_Test.php b/modules/gallery/tests/Item_Helper_Test.php index 63081884..f5b99bec 100644 --- a/modules/gallery/tests/Item_Helper_Test.php +++ b/modules/gallery/tests/Item_Helper_Test.php @@ -237,7 +237,10 @@ class Item_Helper_Test extends Gallery_Unit_Test_Case { } public function resequence_child_weights_test() { - $album = test::random_album(); + $album = test::random_album_unsaved(); + $album->sort_column = "id"; + $album->save(); + $photo1 = test::random_photo($album); $photo2 = test::random_photo($album); $this->assert_true($photo2->weight > $photo1->weight); |