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
path: root/tests
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2014-01-16 07:04:44 +0400
committerThomas Steur <thomas.steur@gmail.com>2014-01-16 07:04:44 +0400
commit6a1cd0494908330b9343fea42ea0b16199b68944 (patch)
tree332ce6b340f53ced429f7a24401f19664a683023 /tests
parent4b10f3953498ce8c77a073816f9e4f5c0a82721c (diff)
make sure the UI tests run on all hosts
Diffstat (limited to 'tests')
-rw-r--r--tests/PHPUnit/Fixtures/SomeVisitsCustomVariablesCampaignsNotHeuristics.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/PHPUnit/Fixtures/SomeVisitsCustomVariablesCampaignsNotHeuristics.php b/tests/PHPUnit/Fixtures/SomeVisitsCustomVariablesCampaignsNotHeuristics.php
index 70c8bb3f49..d25506ba22 100644
--- a/tests/PHPUnit/Fixtures/SomeVisitsCustomVariablesCampaignsNotHeuristics.php
+++ b/tests/PHPUnit/Fixtures/SomeVisitsCustomVariablesCampaignsNotHeuristics.php
@@ -17,16 +17,19 @@ class Test_Piwik_Fixture_SomeVisitsCustomVariablesCampaignsNotHeuristics extends
public $dateTime = '2009-01-04 00:11:42';
public $idSite = 1;
public $idGoal = 1;
+ private $tmpHost = '';
public function setUp()
{
+ $this->tmpHost = $_SERVER['HTTP_HOST'];
+ $_SERVER['HTTP_HOST'] = 'localhost';
$this->setUpWebsitesAndGoals();
$this->trackVisits();
}
public function tearDown()
{
- // empty
+ $_SERVER['HTTP_HOST'] = $this->tmpHost;
}
private function setUpWebsitesAndGoals()