diff options
author | Andreas Gohr <andi@splitbrain.org> | 2014-09-29 18:29:20 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2014-09-29 18:29:20 +0200 |
commit | 17553fca1944b80c25826f2f71620bbf64e1a49b (patch) | |
tree | 45716d17564d0ea39cda4b0f6961b757e382c068 /_test/tests/inc/common_wl.test.php | |
parent | 2f981761b3f5b7c8dcc53b8026d9fd3c499a7e1e (diff) | |
parent | 80d9f3ddb3a602960d23f1849c1ad6287c4f9d92 (diff) | |
download | rpg-17553fca1944b80c25826f2f71620bbf64e1a49b.tar.gz rpg-17553fca1944b80c25826f2f71620bbf64e1a49b.tar.bz2 |
Merge pull request #624 from lisps/revisions
date_at support
Diffstat (limited to '_test/tests/inc/common_wl.test.php')
-rw-r--r-- | _test/tests/inc/common_wl.test.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/_test/tests/inc/common_wl.test.php b/_test/tests/inc/common_wl.test.php index 2e34dcae3..4bfde3f39 100644 --- a/_test/tests/inc/common_wl.test.php +++ b/_test/tests/inc/common_wl.test.php @@ -142,6 +142,17 @@ class common_wl_test extends DokuWikiTest { $expect = DOKU_BASE . DOKU_SCRIPT . '/some/one?a=b&c=d'; $this->assertEquals($expect, wl('some:one', 'a=b,c=d', false, '&')); } + + function test_wl_empty_rev() { + global $conf; + $conf['useslash'] = 0; + $conf['userewrite'] = 0; + + $args = array('a' => 'b', 'c' => 'd', 'rev' => ''); + + $expect = DOKU_BASE . DOKU_SCRIPT . '?id=some:&a=b&c=d'; + $this->assertEquals($expect, wl('some:', $args)); + } |