summaryrefslogtreecommitdiff
path: root/modules/gallery_unit_test
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gallery_unit_test')
-rw-r--r--modules/gallery_unit_test/helpers/test.php4
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") {