Skip to content
Extraits de code Groupes Projets
Valider 78483ed0 rédigé par mattab's avatar mattab
Parcourir les fichiers

Append request_uri to the Piwik URL in tests refs #7253 #6645

parent 1cba6029
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -462,6 +462,7 @@ class Fixture extends \PHPUnit_Framework_Assert ...@@ -462,6 +462,7 @@ class Fixture extends \PHPUnit_Framework_Assert
public static function getRootUrl() public static function getRootUrl()
{ {
$piwikUrl = Config::getInstance()->tests['http_host']; $piwikUrl = Config::getInstance()->tests['http_host'];
$piwikUri = Config::getInstance()->tests['request_uri'];
if (strpos($piwikUrl, 'http://') !== 0) { if (strpos($piwikUrl, 'http://') !== 0) {
$piwikUrl = 'http://' . $piwikUrl . '/'; $piwikUrl = 'http://' . $piwikUrl . '/';
...@@ -482,6 +483,9 @@ class Fixture extends \PHPUnit_Framework_Assert ...@@ -482,6 +483,9 @@ class Fixture extends \PHPUnit_Framework_Assert
// we don't want to require Travis CI or devs to setup HTTPS on their local machine // we don't want to require Travis CI or devs to setup HTTPS on their local machine
$piwikUrl = str_replace("https://", "http://", $piwikUrl); $piwikUrl = str_replace("https://", "http://", $piwikUrl);
// append REQUEST_URI (eg. when Piwik runs at http://localhost/piwik/)
$piwikUrl .= $piwikUri;
return $piwikUrl; return $piwikUrl;
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter