diff options
-rw-r--r-- | modules/gallery_unit_test/helpers/test.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery_unit_test/helpers/test.php b/modules/gallery_unit_test/helpers/test.php index 94dac22e..3e116808 100644 --- a/modules/gallery_unit_test/helpers/test.php +++ b/modules/gallery_unit_test/helpers/test.php @@ -30,7 +30,7 @@ class test_Core { } static function random_album($parent=null) { - return test::random_album_unsaved($parent)->save(); + return test::random_album_unsaved($parent)->save()->reload(); } static function random_photo_unsaved($parent=null) { @@ -45,7 +45,7 @@ class test_Core { } static function random_photo($parent=null) { - return test::random_photo_unsaved($parent)->save(); + return test::random_photo_unsaved($parent)->save()->reload(); } static function random_user($password="password") { |