diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-01-22 01:10:52 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-22 01:10:52 -0800 |
commit | 61198c22aaae8bdeff8dfbe3bfaedc1320dfdab1 (patch) | |
tree | 01b9699db50d07687a467bc6522607402d104caf /modules/gallery_unit_test/helpers/test.php | |
parent | 0efbfcbe61e26cb53cb0719ced3c5c436f128386 (diff) |
Reload items after saving so that we convert their members to strings.
Diffstat (limited to 'modules/gallery_unit_test/helpers/test.php')
-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") { |