diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-01-21 08:29:30 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-21 08:29:30 -0800 |
commit | 1e35cf28eef8d88e8e5c611db108667526a0767b (patch) | |
tree | 2458e45ea7d7339dc2747f28b0f51341530836a9 /modules/gallery/tests/Item_Helper_Test.php | |
parent | dde429f71e536d66565eb6aa78bf58c39a243abb (diff) |
Reload the album after adding the photo so that MPTT pointers are correct.
Diffstat (limited to 'modules/gallery/tests/Item_Helper_Test.php')
-rw-r--r-- | modules/gallery/tests/Item_Helper_Test.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gallery/tests/Item_Helper_Test.php b/modules/gallery/tests/Item_Helper_Test.php index 5fa8d6b1..cdbdd324 100644 --- a/modules/gallery/tests/Item_Helper_Test.php +++ b/modules/gallery/tests/Item_Helper_Test.php @@ -22,6 +22,7 @@ class Item_Helper_Test extends Gallery_Unit_Test_Case { public function viewable_test() { $album = test::random_album(); $item = test::random_photo($album); + $album->reload(); identity::set_active_user(identity::guest()); // We can see the item when permissions are granted |