diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-01-23 11:35:26 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-23 11:35:26 -0800 |
commit | 4960061b562a0d5adafd767af7856d1a80a549a6 (patch) | |
tree | ae37873d712b4c891fe0bf52445d99a53afe2a13 /modules/gallery | |
parent | eea27c39f1cc7edb9ad0f9682bedfb2770661a7f (diff) |
Don't use ORM_MPTT::move_to directly, it's protected.
Diffstat (limited to 'modules/gallery')
-rw-r--r-- | modules/gallery/tests/ORM_MPTT_Test.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gallery/tests/ORM_MPTT_Test.php b/modules/gallery/tests/ORM_MPTT_Test.php index 8c850a86..5e741537 100644 --- a/modules/gallery/tests/ORM_MPTT_Test.php +++ b/modules/gallery/tests/ORM_MPTT_Test.php @@ -90,7 +90,8 @@ class ORM_MPTT_Test extends Gallery_Unit_Test_Case { $album3 = test::random_album($album2); try { - $album1->move_to($album3); + $album1->parent_id = $album3->id; + $album1->save(); $this->assert_true(false, "We should be unable to move an item inside its own hierarchy"); } catch (Exception $e) { // pass |