summaryrefslogtreecommitdiff
path: root/_test
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2013-02-20 20:18:59 +0100
committerChristopher Smith <chris@jalakai.co.uk>2013-02-24 12:39:02 +0000
commite8baa2279f46cfaaf18a54d75c1329d266a4ca47 (patch)
tree81f8532f2bb745b05940d18ad1b2c9c5c2de0625 /_test
parentb6235013d0c936d6852299af46d0f6a7eb907665 (diff)
downloadrpg-e8baa2279f46cfaaf18a54d75c1329d266a4ca47.tar.gz
rpg-e8baa2279f46cfaaf18a54d75c1329d266a4ca47.tar.bz2
Revert the search depth behavior changes from #154
This reverts parts of the changes from #154: Before merging the pull request, a depth of 1 returned just the pages in the root namespace. With the changes in the pull request, a depth of 1 also returned pages in subnamespaces of the root namespace (as it was also tested in the test case). This reverts this part of the changes and a depth of 1 returns just the pages in the root namespace again.
Diffstat (limited to '_test')
-rw-r--r--_test/tests/inc/search/search.test.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/_test/tests/inc/search/search.test.php b/_test/tests/inc/search/search.test.php
index 9c854a661..33d4e9d8d 100644
--- a/_test/tests/inc/search/search.test.php
+++ b/_test/tests/inc/search/search.test.php
@@ -22,9 +22,9 @@ class search_test extends DokuWikiTest {
search($data, dirname(__FILE__) . '/data', 'search_allpages', array('depth' => 1), 'ns1/ns3');
$this->assertEquals(0, count($data));
- //depth is 1 so I should get only pages from ns1
+ //depth is 2 so I should get only pages from ns1
$data = array();
- search($data, dirname(__FILE__) . '/data', 'search_allpages', array('depth' => 1), 'ns1');
+ search($data, dirname(__FILE__) . '/data', 'search_allpages', array('depth' => 2), 'ns1');
$this->assertEquals(2, count($data));
}