From 4960061b562a0d5adafd767af7856d1a80a549a6 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 23 Jan 2010 11:35:26 -0800 Subject: Don't use ORM_MPTT::move_to directly, it's protected. --- modules/gallery/tests/ORM_MPTT_Test.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/gallery/tests/ORM_MPTT_Test.php') 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 -- cgit v1.2.3