summaryrefslogtreecommitdiff
path: root/_test
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2009-05-15 20:44:06 +0200
committerAndreas Gohr <andi@splitbrain.org>2009-05-15 20:44:06 +0200
commit7d71d4b76c180d36d77c3206149ed99d8de4e7a7 (patch)
tree559a8916d8f4390579f18eb3713ee9c6019a7bfd /_test
parent7c90ff2a4628b8fe1638304d145d06d47f46c6a1 (diff)
downloadrpg-7d71d4b76c180d36d77c3206149ed99d8de4e7a7.tar.gz
rpg-7d71d4b76c180d36d77c3206149ed99d8de4e7a7.tar.bz2
fix for getID() when the script isn't installed in document root FS#1691
Ignore-this: 2757dc089bd6c8465e5b0a4c1311cf85 darcs-hash:20090515184406-7ad00-cd124f30cd1c1b5b744e942e2279ff52cad6eb30.gz
Diffstat (limited to '_test')
-rw-r--r--_test/cases/inc/pageutils_getid.test.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/_test/cases/inc/pageutils_getid.test.php b/_test/cases/inc/pageutils_getid.test.php
index aa97e4930..8233ffb42 100644
--- a/_test/cases/inc/pageutils_getid.test.php
+++ b/_test/cases/inc/pageutils_getid.test.php
@@ -57,6 +57,9 @@ class init_getID_test extends UnitTestCase {
$_SERVER['SCRIPT_FILENAME'] = '/usr/share/dokuwiki/doku.php';
$_SERVER['SCRIPT_NAME'] = '/dokuwiki/doku.php';
$_SERVER['REQUEST_URI'] = '/dokuwiki/doku.php/wiki:dokuwiki';
+ $_SERVER['PATH_INFO'] = '/wiki:dokuwiki';
+ $_SERVER['PATH_TRANSLATED'] = '/var/www/wiki:dokuwiki';
+ $_SERVER['PHP_SELF'] = '/dokuwiki/doku.php/wiki:dokuwiki';
$this->assertEqual(getID(), 'wiki:dokuwiki');
}