summaryrefslogtreecommitdiff
path: root/_test/core
diff options
context:
space:
mode:
authorlisps <stummp@loewen.de>2014-02-04 10:59:06 +0100
committerlisps <stummp@loewen.de>2014-02-04 10:59:06 +0100
commitfe717f57f7a1c262eb6104ccb575ee3294712afa (patch)
treed3eac7f90c8af179be2a2ec61d8fbf58a19d5336 /_test/core
parentc7e0f3b572ef25116f649a04d0cd2e729ff97f9a (diff)
downloadrpg-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')
-rw-r--r--_test/core/TestRequest.php9
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;
}