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:
authordiosmosis <benakamoorthi@fastmail.fm>2013-12-15 03:14:58 +0400
committerdiosmosis <benakamoorthi@fastmail.fm>2013-12-15 03:23:30 +0400
commita68ed87a60f246e97073c202413a3ce0575dce7b (patch)
treec4e0edf9983e16600a772e5302bb202d191e7d50 /tests/PHPUnit/Fixtures/ManySitesImportedLogs.php
parent6a5c309443f547558f19f7a769aeeb548750c85d (diff)
Refs #4189, use new Omni test fixture for UI tests that combines all other fixtures.
Diffstat (limited to 'tests/PHPUnit/Fixtures/ManySitesImportedLogs.php')
-rw-r--r--tests/PHPUnit/Fixtures/ManySitesImportedLogs.php16
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/PHPUnit/Fixtures/ManySitesImportedLogs.php b/tests/PHPUnit/Fixtures/ManySitesImportedLogs.php
index eb3ee16ed9..d4f66a67d0 100644
--- a/tests/PHPUnit/Fixtures/ManySitesImportedLogs.php
+++ b/tests/PHPUnit/Fixtures/ManySitesImportedLogs.php
@@ -47,10 +47,18 @@ class Test_Piwik_Fixture_ManySitesImportedLogs extends Test_Piwik_BaseFixture
public function setUpWebsitesAndGoals()
{
// for conversion testing
- self::createWebsite($this->dateTime);
- APIGoals::getInstance()->addGoal($this->idSite, 'all', 'url', 'http', 'contains', false, 5);
- self::createWebsite($this->dateTime, $ecommerce = 0, $siteName = 'Piwik test two',
- $siteUrl = 'http://example-site-two.com');
+ if (!self::siteCreated($idSite = 1)) {
+ self::createWebsite($this->dateTime);
+ }
+
+ if (!self::goalExists($idSite = 1, $idGoal = 1)) {
+ APIGoals::getInstance()->addGoal($this->idSite, 'all', 'url', 'http', 'contains', false, 5);
+ }
+
+ if (!self::siteCreated($idSite = 2)) {
+ self::createWebsite($this->dateTime, $ecommerce = 0, $siteName = 'Piwik test two',
+ $siteUrl = 'http://example-site-two.com');
+ }
}
public function getDefaultSegments()