From 055aa044977fdb608547bca2f39b79abe31beabe Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 7 Dec 2008 08:23:22 +0000 Subject: Rename moveTo to move_to and extend the test a bit. --- core/tests/ORM_MPTT_Test.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'core/tests') diff --git a/core/tests/ORM_MPTT_Test.php b/core/tests/ORM_MPTT_Test.php index cd6b38eb..03230ad9 100644 --- a/core/tests/ORM_MPTT_Test.php +++ b/core/tests/ORM_MPTT_Test.php @@ -65,13 +65,21 @@ class ORM_MPTT_Test extends Unit_Test_Case { $album1_2->reload(); $album1_1_1->reload(); - $album1_1_1->moveTo($album1_2); + $album1_1_1->move_to($album1_2); $album1_1->reload(); $album1_2->reload(); $this->assert_equal(3, $album1_1->right - $album1_1->left); - $this->assert_equal(3, $album1_2->right - $album1_2 ->left); + $this->assert_equal(3, $album1_2->right - $album1_2->left); + + $this->assert_equal( + array($album1_1_2->id => "move_to_test_1_1_2"), + $album1_1->children()->select_list()); + + $this->assert_equal( + array($album1_1_1->id => "move_to_test_1_1_1"), + $album1_2->children()->select_list()); } public function parent_test() { -- cgit v1.2.3