diff --git a/tests/PHPUnit/Fixture.php b/tests/PHPUnit/Fixture.php index ac0861b87117d74d25ee90aa2ba0a22e22c0521a..bca98fe545196750b5d64d7d819542c5f8c08a39 100644 --- a/tests/PHPUnit/Fixture.php +++ b/tests/PHPUnit/Fixture.php @@ -335,6 +335,11 @@ class Fixture extends PHPUnit_Framework_Assert if ($testsInPath !== false) { $piwikUrl = substr($piwikUrl, 0, $testsInPath); } + + // in case force_ssl=1, or assume_secure_protocol=1, is set in tests + // we don't want to require Travis CI or devs to setup HTTPS on their local machine + $piwikUrl = str_replace("https://", "http://", $piwikUrl); + return $piwikUrl; }