diff options
author | lisps <stummp@loewen.de> | 2014-02-04 10:59:06 +0100 |
---|---|---|
committer | lisps <stummp@loewen.de> | 2014-02-04 10:59:06 +0100 |
commit | fe717f57f7a1c262eb6104ccb575ee3294712afa (patch) | |
tree | d3eac7f90c8af179be2a2ec61d8fbf58a19d5336 /_test/core/TestRequest.php | |
parent | c7e0f3b572ef25116f649a04d0cd2e729ff97f9a (diff) | |
download | rpg-fe717f57f7a1c262eb6104ccb575ee3294712afa.tar.gz rpg-fe717f57f7a1c262eb6104ccb575ee3294712afa.tar.bz2 |
fix content check test cases
add test case new Input check
add global variables to execute
Diffstat (limited to '_test/core/TestRequest.php')
-rw-r--r-- | _test/core/TestRequest.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/_test/core/TestRequest.php b/_test/core/TestRequest.php index 0a54910ed..060e37d28 100644 --- a/_test/core/TestRequest.php +++ b/_test/core/TestRequest.php @@ -44,13 +44,18 @@ class TestRequest { * @return TestResponse the resulting output of the request */ public function execute($uri='/doku.php') { + global $INPUT; + global $ID; + global $INFO; + // save old environment $server = $_SERVER; $session = $_SESSION; $get = $_GET; $post = $_POST; $request = $_REQUEST; - + $input = $INPUT; + // prepare the right URI $this->setUri($uri); @@ -74,6 +79,7 @@ class TestRequest { // now execute dokuwiki and grep the output header_remove(); ob_start('ob_start_callback'); + $INPUT = new Input(); include(DOKU_INC.$this->script); ob_end_flush(); @@ -89,6 +95,7 @@ class TestRequest { $_GET = $get; $_POST = $post; $_REQUEST = $request; + $INPUT = $input; return $response; } |