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:
authormattab <matthieu.aubry@gmail.com>2015-09-11 02:41:38 +0300
committermattab <matthieu.aubry@gmail.com>2015-09-11 02:41:38 +0300
commitbd250985351e3d5d6e8f23ab324fcb64f1933bab (patch)
tree41a235141060d0dacc330a98906c78becd22390c /tests/PHPUnit/Framework/Fixture.php
parent0c30892efa3d747d4226867cf6ad6ceb6fc51b18 (diff)
Append the request_uri but avoid double slashes (for integration tests to pass)
Diffstat (limited to 'tests/PHPUnit/Framework/Fixture.php')
-rw-r--r--tests/PHPUnit/Framework/Fixture.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/PHPUnit/Framework/Fixture.php b/tests/PHPUnit/Framework/Fixture.php
index e2e1890fc9..a048dad516 100644
--- a/tests/PHPUnit/Framework/Fixture.php
+++ b/tests/PHPUnit/Framework/Fixture.php
@@ -488,7 +488,9 @@ class Fixture extends \PHPUnit_Framework_Assert
$piwikUrl = str_replace("https://", "http://", $piwikUrl);
// append REQUEST_URI (eg. when Piwik runs at http://localhost/piwik/)
- $piwikUrl .= $piwikUri;
+ if($piwikUri != '/') {
+ $piwikUrl .= $piwikUri;
+ }
return $piwikUrl;
}