Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2020-10-28 23:46:35 +0300
committerGitHub <noreply@github.com>2020-10-28 23:46:35 +0300
commit0e910f0badf1aaa6e1b34b83f4f1f9a11bd5b373 (patch)
tree64c6e341629ba8cd9f77c913fa777ee9f3537dfc /tests/PHPUnit/Framework
parenteb1543097d188c322b8470fea240fb62e39d01dd (diff)
Improve possibility to disable visits log / visitor profile (#16598)
Diffstat (limited to 'tests/PHPUnit/Framework')
-rw-r--r--tests/PHPUnit/Framework/TestRequest/Response.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/PHPUnit/Framework/TestRequest/Response.php b/tests/PHPUnit/Framework/TestRequest/Response.php
index 50f1a76040..1a7a588bcc 100644
--- a/tests/PHPUnit/Framework/TestRequest/Response.php
+++ b/tests/PHPUnit/Framework/TestRequest/Response.php
@@ -60,6 +60,9 @@ class Response
{
$testRequest = new Request($requestUrl);
+ // set the request as root request
+ Request::setIsRootRequestApiRequest(Request::getMethodIfApiRequest(Request::getRequestArrayFromString($requestUrl, null)));
+
// Cast as string is important. For example when calling
// with format=original, objects or php arrays can be returned.
$response = (string) $testRequest->process();