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:
authorThomas Steur <thomas.steur@gmail.com>2015-05-04 02:02:13 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-05-04 02:02:13 +0300
commit41d914687f5120692430686cc12bcda283c7f2cd (patch)
treea499f401cae1787309c4c1a36cb74627ea5ea9b8 /tests/PHPUnit
parentb8e0d5e20672200abe97ca2d2f8568f32b8001c8 (diff)
added test to make sure it works and will not regress again
Diffstat (limited to 'tests/PHPUnit')
-rwxr-xr-xtests/PHPUnit/System/OneVisitorOneWebsiteSeveralDaysDateRangeTest.php7
-rw-r--r--tests/PHPUnit/System/expected/test_oneVisitor_oneWebsite_severalDays_DateRange_showColumns__MultiSites.getAll_day.xml19
2 files changed, 26 insertions, 0 deletions
diff --git a/tests/PHPUnit/System/OneVisitorOneWebsiteSeveralDaysDateRangeTest.php b/tests/PHPUnit/System/OneVisitorOneWebsiteSeveralDaysDateRangeTest.php
index 2e7051911f..f3b1525734 100755
--- a/tests/PHPUnit/System/OneVisitorOneWebsiteSeveralDaysDateRangeTest.php
+++ b/tests/PHPUnit/System/OneVisitorOneWebsiteSeveralDaysDateRangeTest.php
@@ -66,6 +66,13 @@ class OneVisitorOneWebsiteSeveralDaysDateRangeTest extends SystemTestCase
'testSuffix' => '_MultipleDatesNotSupported',
)),
+ // test that multiple periods are not supported
+ array('MultiSites.getAll', array('date' => '2010-12-15',
+ 'periods' => array('day'),
+ 'testSuffix' => '_showColumns',
+ 'otherRequestParameters' => array('showColumns' => 'nb_visits,visits_evolution')
+ )),
+
//---------------------------------------
// THEN some Socials tests. Share these...
array('Referrers.getSocials', array('idSite' => 'all',
diff --git a/tests/PHPUnit/System/expected/test_oneVisitor_oneWebsite_severalDays_DateRange_showColumns__MultiSites.getAll_day.xml b/tests/PHPUnit/System/expected/test_oneVisitor_oneWebsite_severalDays_DateRange_showColumns__MultiSites.getAll_day.xml
new file mode 100644
index 0000000000..1639884498
--- /dev/null
+++ b/tests/PHPUnit/System/expected/test_oneVisitor_oneWebsite_severalDays_DateRange_showColumns__MultiSites.getAll_day.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<result>
+ <row>
+ <label>Site AAAAAA</label>
+ <nb_visits>2</nb_visits>
+ <visits_evolution>0%</visits_evolution>
+ <idsite>1</idsite>
+ <group />
+ <main_url>http://piwik.net</main_url>
+ </row>
+ <row>
+ <label>SITE BBbbBB</label>
+ <nb_visits>1</nb_visits>
+ <visits_evolution>0%</visits_evolution>
+ <idsite>2</idsite>
+ <group />
+ <main_url>http://piwik.net</main_url>
+ </row>
+</result> \ No newline at end of file