diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-07 08:23:22 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-07 08:23:22 +0000 |
commit | 055aa044977fdb608547bca2f39b79abe31beabe (patch) | |
tree | be62c491226b3c8e0617b082310ab9834b16392d /core/tests/ORM_MPTT_Test.php | |
parent | d086f31ea4f877b9497f8d4933edd9352ba04b1a (diff) |
Rename moveTo to move_to and extend the test a bit.
Diffstat (limited to 'core/tests/ORM_MPTT_Test.php')
-rw-r--r-- | core/tests/ORM_MPTT_Test.php | 12 |
1 files changed, 10 insertions, 2 deletions
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() { |