diff options
author | Adrian Lang <mail@adrianlang.de> | 2011-04-09 13:30:34 +0200 |
---|---|---|
committer | Adrian Lang <mail@adrianlang.de> | 2011-04-09 13:30:34 +0200 |
commit | 0c28bbb66296d814d8969a62c54001516ed3e0ad (patch) | |
tree | 4c915e215efd15d2c947518fc1adbbd8c0f7332d /_test | |
parent | fda14ffc7c57c4451df9196e8125cd39b1d5c134 (diff) | |
download | rpg-0c28bbb66296d814d8969a62c54001516ed3e0ad.tar.gz rpg-0c28bbb66296d814d8969a62c54001516ed3e0ad.tar.bz2 |
Fix page ID test cases & make them more robust
Diffstat (limited to '_test')
-rw-r--r-- | _test/cases/inc/pageutils_getid.test.php | 2 | ||||
-rw-r--r-- | _test/cases/inc/parser/xhtml_links.test.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/_test/cases/inc/pageutils_getid.test.php b/_test/cases/inc/pageutils_getid.test.php index 7fccc3a60..6eddeb5ea 100644 --- a/_test/cases/inc/pageutils_getid.test.php +++ b/_test/cases/inc/pageutils_getid.test.php @@ -99,7 +99,7 @@ class init_getID_test extends UnitTestCase { $_SERVER['PATH_TRANSLATED'] = '/var/www/index.html'; $_SERVER['PHP_SELF'] = '/dokuwiki/doku.php/'; - $this->assertEqual(getID(), 'start'); + $this->assertEqual(getID(), cleanID($conf['start'])); } } diff --git a/_test/cases/inc/parser/xhtml_links.test.php b/_test/cases/inc/parser/xhtml_links.test.php index 74c39353e..a9a6dfdbc 100644 --- a/_test/cases/inc/parser/xhtml_links.test.php +++ b/_test/cases/inc/parser/xhtml_links.test.php @@ -232,7 +232,7 @@ class xhtml_links_test extends UnitTestCase { $p = new Doku_Renderer_xhtml(); $p->locallink('test', $caption); - $expect = '<a href="#test" title="'.$caption.' ↵" class="wikilink1">'.$caption.'</a>'; + $expect = '<a href="#test" title="'.$page.' ↵" class="wikilink1">'.$caption.'</a>'; $this->assertEqual($p->doc, $expect); } |