Skip to content

Commit

Permalink
Fix page ID test cases & make them more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianheine committed Apr 9, 2011
1 parent fda14ff commit 0c28bbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _test/cases/inc/pageutils_getid.test.php
Expand Up @@ -99,7 +99,7 @@ function test5() {
$_SERVER['PATH_TRANSLATED'] = '/var/www/index.html';
$_SERVER['PHP_SELF'] = '/dokuwiki/doku.php/';

$this->assertEqual(getID(), 'start');
$this->assertEqual(getID(), cleanID($conf['start']));
}

}
Expand Down
2 changes: 1 addition & 1 deletion _test/cases/inc/parser/xhtml_links.test.php
Expand Up @@ -232,7 +232,7 @@ function test_empty_locallink_with_caption(){
$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);
}
Expand Down

0 comments on commit 0c28bbb

Please sign in to comment.