summaryrefslogtreecommitdiff
path: root/modules/gallery_unit_test/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-01-22 01:10:52 -0800
committerBharat Mediratta <bharat@menalto.com>2010-01-22 01:10:52 -0800
commit61198c22aaae8bdeff8dfbe3bfaedc1320dfdab1 (patch)
tree01b9699db50d07687a467bc6522607402d104caf /modules/gallery_unit_test/helpers
parent0efbfcbe61e26cb53cb0719ced3c5c436f128386 (diff)
Reload items after saving so that we convert their members to strings.
Diffstat (limited to 'modules/gallery_unit_test/helpers')
-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") {