diff --git a/tests/10_Writing/MoveMethodsTest.php b/tests/10_Writing/MoveMethodsTest.php index b614e9b3..9d23751f 100644 --- a/tests/10_Writing/MoveMethodsTest.php +++ b/tests/10_Writing/MoveMethodsTest.php @@ -20,6 +20,17 @@ protected function setUp() parent::setUp(); } + public function testNodeRenameRoot() + { + $root = $this->session->getRootNode(); + $newNode = $root->addNode('foobar'); + $newNode->rename('barfoo'); + $this->session->save(); + $this->renewSession(); + $node = $this->session->getNode('/barfoo'); + $this->assertNotNull($node); + } + public function testNodeRename() { $first = $this->node->getNode('firstNode');