Skip to content
Snippets Groups Projects
Commit 0c28bbb6 authored by Adrian Lang's avatar Adrian Lang
Browse files

Fix page ID test cases & make them more robust

parent fda14ffc
No related branches found
No related tags found
No related merge requests found
......@@ -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']));
}
}
......
......@@ -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.' &crarr;" class="wikilink1">'.$caption.'</a>';
$expect = '<a href="#test" title="'.$page.' &crarr;" class="wikilink1">'.$caption.'</a>';
$this->assertEqual($p->doc, $expect);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment