summaryrefslogtreecommitdiff
path: root/tests/TestBaseApi.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/TestBaseApi.php')
-rw-r--r--tests/TestBaseApi.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/TestBaseApi.php b/tests/TestBaseApi.php
index 31797c9..1f2e8ff 100644
--- a/tests/TestBaseApi.php
+++ b/tests/TestBaseApi.php
@@ -77,10 +77,14 @@ class TestBaseApi extends TestBase
*/
protected function getRequest($urlSuffix = null)
{
- $req = new HTTP_Request2(
- $this->url . $urlSuffix,
- HTTP_Request2::METHOD_GET
- );
+ $url = $this->url . $urlSuffix;
+ if (strpos($urlSuffix, '?') !== false) {
+ $url .= '&unittestMode=1';
+ } else {
+ $url .= '?unittestMode=1';
+ }
+
+ $req = new HTTP_Request2($url, HTTP_Request2::METHOD_GET);
return $req;
}