diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2014-03-06 19:58:09 +0000 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2014-03-06 19:58:09 +0000 |
commit | c01cdb709fd0bf8c91333c5134743e33bf587833 (patch) | |
tree | d36ed5ae41119eb8386f03ee8de92a5c26f8448c | |
parent | 585bf44e2b756eac2e1cfce7035ef237bc02a788 (diff) | |
download | rpg-c01cdb709fd0bf8c91333c5134743e33bf587833.tar.gz rpg-c01cdb709fd0bf8c91333c5134743e33bf587833.tar.bz2 |
Fix unittests broken by previous two commits
Mostly this is for unit tests which use of \$_SERVER['REMOTE_USER']
It ensures the reference/alias connection between \$INPUT->server
and \$_SERVER is renewed before each test. Tests using TestRequest
class will replace this \$INPUT with their own.
-rw-r--r-- | _test/core/DokuWikiTest.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/_test/core/DokuWikiTest.php b/_test/core/DokuWikiTest.php index 91eb5293b..f4521256a 100644 --- a/_test/core/DokuWikiTest.php +++ b/_test/core/DokuWikiTest.php @@ -115,5 +115,8 @@ abstract class DokuWikiTest extends PHPUnit_Framework_TestCase { // reload language $local = $conf['lang']; trigger_event('INIT_LANG_LOAD', $local, 'init_lang', true); + + global $INPUT; + $INPUT = new Input(); } } |