From 61198c22aaae8bdeff8dfbe3bfaedc1320dfdab1 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Fri, 22 Jan 2010 01:10:52 -0800 Subject: Reload items after saving so that we convert their members to strings. --- modules/gallery_unit_test/helpers/test.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/gallery_unit_test') 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") { -- cgit v1.2.3