Skip to content

Commit

Permalink
fix test from cli
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Apr 14, 2014
1 parent bcacd17 commit 5c7a203
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions _test/instructions.test.php
Expand Up @@ -8,7 +8,9 @@
class plugin_pageredirect_test1 extends plugin_pageredirect_abstract_test {
public function test_instructions() {
$instructions = p_get_instructions("~~REDIRECT>namespace:page~~");
echo var_export($instructions);

// this is '/tmp' somewhy when ran from IDEA
$doku_root = '/.';
$expected = array(
0 =>
array(
Expand All @@ -26,7 +28,7 @@ public function test_instructions() {
1 =>
array(
0 => 'namespace:page',
1 => '<div class="noteredirect">This page has been moved, the new location is <a href="/tmp/doku.php?id=namespace:page" class="wikilink2" title="namespace:page" rel="nofollow">page</a>.</div>',
1 => '<div class="noteredirect">This page has been moved, the new location is <a href="'.$doku_root.'/doku.php?id=namespace:page" class="wikilink2" title="namespace:page" rel="nofollow">page</a>.</div>',
),
2 => 5,
3 => '~~REDIRECT>namespace:page~~',
Expand Down

0 comments on commit 5c7a203

Please sign in to comment.