From e44ff9bb6054f83d266a28f4e5418ff9b98a5b80 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 5 Nov 2008 07:47:19 +0000 Subject: ORM_MPTT::parents() should not include the node itself. --- core/tests/ORM_MPTT_Test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/tests') diff --git a/core/tests/ORM_MPTT_Test.php b/core/tests/ORM_MPTT_Test.php index 208c199f..a543c1cd 100644 --- a/core/tests/ORM_MPTT_Test.php +++ b/core/tests/ORM_MPTT_Test.php @@ -50,7 +50,7 @@ class ORM_MPTT_Test extends Unit_Test_Case { foreach ($inner->parents() as $parent) { $parent_ids[] = $parent->id; } - $this->assert_equal(array(1, $outer->id, $inner->id), $parent_ids); + $this->assert_equal(array(1, $outer->id), $parent_ids); } public function children_test() { -- cgit v1.2.3