diff options
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 |