diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-08-31 13:57:40 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2015-08-31 13:57:40 +0300 |
commit | 8b45e0e64f14ef709c5f5f56073008c6b22b01c2 (patch) | |
tree | 18c5f190298767169a8b89ac231d020e483eb921 /tests/PHPUnit/Fixtures | |
parent | c63bdfb10f1307e5e76e3de138afa03971feb458 (diff) |
added tests for piwik/piwik-log-analytics#97 to make sure idsite option is applied
Diffstat (limited to 'tests/PHPUnit/Fixtures')
-rw-r--r-- | tests/PHPUnit/Fixtures/ManySitesImportedLogs.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/PHPUnit/Fixtures/ManySitesImportedLogs.php b/tests/PHPUnit/Fixtures/ManySitesImportedLogs.php index 5845f31909..2b631a069f 100644 --- a/tests/PHPUnit/Fixtures/ManySitesImportedLogs.php +++ b/tests/PHPUnit/Fixtures/ManySitesImportedLogs.php @@ -69,6 +69,11 @@ class ManySitesImportedLogs extends Fixture self::createWebsite($this->dateTime, $ecommerce = 0, $siteName = 'Piwik test two', $siteUrl = 'http://example-site-two.com'); } + + if (!self::siteCreated($idSite = 3)) { + self::createWebsite($this->dateTime, $ecommerce = 0, $siteName = 'Piwik test three', + $siteUrl = 'http://example-site-three.com'); + } } const SEGMENT_PRE_ARCHIVED = 'visitCount<=5;visitorType!=non-existing-type;daysSinceFirstVisit<=50'; @@ -238,6 +243,11 @@ class ManySitesImportedLogs extends Fixture '--replay-tracking' => false); self::executeLogImporter($logFile, $opts); + + // execute again but this time with different idsite + $opts['--idsite'] = 3; + + self::executeLogImporter($logFile, $opts); } /** |