From 8f3fcd1c9d0b31fb9346ebffc2f2b9511b00e123 Mon Sep 17 00:00:00 2001 From: Christoph Jaehnigen Date: Thu, 11 Aug 2011 23:53:31 +0200 Subject: [PATCH] closes issue #5 --- _test/pagemove.test.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/_test/pagemove.test.php b/_test/pagemove.test.php index 69c1173..be19f58 100644 --- a/_test/pagemove.test.php +++ b/_test/pagemove.test.php @@ -43,6 +43,7 @@ function setUp() { $text = <<movedId|$this->movedId]] +[[:$this->movedId|:$this->movedId]] [[.current_ns:test_page|.current_ns:test_page]] [[.:current_ns:test_page|.:current_ns:test_page]] [[..parent_ns:current_ns:test_page|..parent_ns:current_ns:test_page]] @@ -68,6 +69,7 @@ function setUp() { $text = <<movedId|$this->movedId]] +[[:$this->movedId|:$this->movedId]] [[..current_ns:test_page|..current_ns:test_page]] [[..:current_ns:test_page|..:current_ns:test_page]] [[test_page|test_page]] @@ -97,6 +99,7 @@ function setUp() { $text = <<movedId|$this->movedId]] +[[:$this->movedId|:$this->movedId]] [[.current_ns:test_page|.current_ns:test_page]] [[.:current_ns:test_page|.:current_ns:test_page]] [[test_page|test_page]] @@ -121,6 +124,7 @@ function setUp() { $text = <<movedId|$this->movedId]] +[[:$this->movedId|:$this->movedId]] [[..:..current_ns:test_page|..:..current_ns:test_page]] [[..:..:current_ns:test_page|..:..:current_ns:test_page]] [[test_page|test_page]] @@ -193,6 +197,7 @@ function test_move_page_in_same_ns() { $newContent = rawWiki($this->parentBacklinkingId); $expectedContent = <<movedId]] +[[.:current_ns:new_page|:$this->movedId]] [[.:current_ns:new_page|.current_ns:test_page]] [[.:current_ns:new_page|.:current_ns:test_page]] [[.:current_ns:new_page|..parent_ns:current_ns:test_page]] @@ -219,6 +224,7 @@ function test_move_page_in_same_ns() { $newContent = rawWiki($this->currentNsBacklinkingId); $expectedContent = <<movedId]] +[[new_page|:$this->movedId]] [[new_page|..current_ns:test_page]] [[new_page|..:current_ns:test_page]] [[new_page|test_page]] @@ -249,6 +255,7 @@ function test_move_page_in_same_ns() { $newContent = rawWiki($this->otherBacklinkingId); $expectedContent = <<movedId]] +[[$newId|:$this->movedId]] [[.current_ns:test_page|.current_ns:test_page]] [[.:current_ns:test_page|.:current_ns:test_page]] [[test_page|test_page]] @@ -308,6 +315,7 @@ function test_move_page_to_parallel_ns() { $newContent = rawWiki($this->parentBacklinkingId); $expectedContent = <<movedId]] +[[.:parallel_ns:new_page|:$this->movedId]] [[.:parallel_ns:new_page|.current_ns:test_page]] [[.:parallel_ns:new_page|.:current_ns:test_page]] [[.:parallel_ns:new_page|..parent_ns:current_ns:test_page]] @@ -334,6 +342,7 @@ function test_move_page_to_parallel_ns() { $newContent = rawWiki($this->currentNsBacklinkingId); $expectedContent = <<movedId]] +[[$newId|:$this->movedId]] [[parent_ns:parallel_ns:new_page|..current_ns:test_page]] [[parent_ns:parallel_ns:new_page|..:current_ns:test_page]] [[parent_ns:parallel_ns:new_page|test_page]] @@ -364,6 +373,7 @@ function test_move_page_to_parallel_ns() { $newContent = rawWiki($this->otherBacklinkingId); $expectedContent = <<movedId]] +[[$newId|:$this->movedId]] [[.current_ns:test_page|.current_ns:test_page]] [[.:current_ns:test_page|.:current_ns:test_page]] [[test_page|test_page]] @@ -425,6 +435,7 @@ function test_move_page_to_parent_ns() { $newContent = rawWiki($this->parentBacklinkingId); $expectedContent = <<movedId]] +[[new_page|:$this->movedId]] [[new_page|.current_ns:test_page]] [[new_page|.:current_ns:test_page]] [[new_page|..parent_ns:current_ns:test_page]] @@ -451,6 +462,7 @@ function test_move_page_to_parent_ns() { $newContent = rawWiki($this->currentNsBacklinkingId); $expectedContent = <<movedId]] +[[$newId|:$this->movedId]] [[parent_ns:new_page|..current_ns:test_page]] [[parent_ns:new_page|..:current_ns:test_page]] [[parent_ns:new_page|test_page]] @@ -481,6 +493,7 @@ function test_move_page_to_parent_ns() { $newContent = rawWiki($this->otherBacklinkingId); $expectedContent = <<movedId]] +[[$newId|:$this->movedId]] [[.current_ns:test_page|.current_ns:test_page]] [[.:current_ns:test_page|.:current_ns:test_page]] [[test_page|test_page]]