aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/session/testable_factory.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/session/testable_factory.php b/tests/session/testable_factory.php
index 2b6a1683d3..3d4fbcc7cb 100644
--- a/tests/session/testable_factory.php
+++ b/tests/session/testable_factory.php
@@ -73,7 +73,8 @@ class phpbb_session_testable_factory
$request = $this->request = new phpbb_mock_request(
array(),
array(),
- $this->cookies
+ $this->cookies,
+ $this->server_data
);
request_var(null, null, null, null, $request);
@@ -85,8 +86,6 @@ class phpbb_session_testable_factory
$cache = $this->cache = new phpbb_mock_cache($this->get_cache_data());
$SID = $_SID = null;
- $_SERVER = $this->server_data;
-
$session = new phpbb_mock_session_testable;
return $session;
}