Skip to content
Extraits de code Groupes Projets
Valider ac4245ff rédigé par diosmosis's avatar diosmosis
Parcourir les fichiers

Add port in tests to tracker URL.

parent 2a03a343
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -44,7 +44,7 @@ schema = Mysql
http_host = localhost
remote_addr = "127.0.0.1"
request_uri = "@REQUEST_URI@"
port = 80
port =
; access key and secret as listed in AWS -> IAM -> Users
aws_accesskey = ""
......
......@@ -468,11 +468,16 @@ class Fixture extends \PHPUnit_Framework_Assert
{
$piwikUrl = Config::getInstance()->tests['http_host'];
$piwikUri = Config::getInstance()->tests['request_uri'];
$piwikPort = Config::getInstance()->tests['port'];
if($piwikUri == '@REQUEST_URI@') {
throw new Exception("Piwik is mis-configured. Remove (or fix) the 'request_uri' entry below [tests] section in your config.ini.php. ");
}
if (!empty($piwikPort)) {
$piwikUrl = $piwikUrl . ':' . $piwikPort;
}
if (strpos($piwikUrl, 'http://') !== 0) {
$piwikUrl = 'http://' . $piwikUrl . '/';
}
......@@ -523,7 +528,6 @@ class Fixture extends \PHPUnit_Framework_Assert
*/
public static function getTracker($idSite, $dateTime, $defaultInit = true, $useLocal = false)
{
echo "Found tracker URL to be: " . self::getTrackerUrl() . "\n";
if ($useLocal) {
require_once PIWIK_INCLUDE_PATH . '/tests/LocalTracker.php';
$t = new Piwik_LocalTracker($idSite, self::getTrackerUrl());
......
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