From 11b11c725ed4eb53ae84b9e61d53d1e2386bbce2 Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Sat, 6 Dec 2014 17:58:41 +0100 Subject: [PATCH] Ensure that rename does not change the position of a node among its siblings --- tests/10_Writing/MoveMethodsTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/10_Writing/MoveMethodsTest.php b/tests/10_Writing/MoveMethodsTest.php index 9768f15e..86ce13e8 100644 --- a/tests/10_Writing/MoveMethodsTest.php +++ b/tests/10_Writing/MoveMethodsTest.php @@ -43,6 +43,9 @@ public function testNodeRename() $session = $this->saveAndRenewSession(); $this->assertTrue($session->nodeExists('/tests_write_manipulation_move/testNodeRename/otherName')); + + $parent = $session->getNode('/tests_write_manipulation_move/testNodeRename'); + $this->assertEquals(array('otherName', 'secondNode'), (array) $parent->getNodeNames(), 'Rename may not change position of nodes'); } public function testSessionMove()