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:
authordiosmosis <benaka.moorthi@gmail.com>2013-04-17 08:56:50 +0400
committerdiosmosis <benaka.moorthi@gmail.com>2013-04-17 08:56:50 +0400
commitbefb48d8935b59a42757cbe0d87cff6f67203b60 (patch)
treef4ef77e2c32bcf1f55648b76836af46285fa9361 /tests
parentc91a60342fe0e7a52e554ae9da8e78e20c759fd3 (diff)
Fixes #3898, fix error that occurs when multi row evolution is called w/o labels for periods w/ no data.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/PHPUnit/Integration/RowEvolutionTest.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/PHPUnit/Integration/RowEvolutionTest.php b/tests/PHPUnit/Integration/RowEvolutionTest.php
index 964cad67f7..7ef6d849d3 100755
--- a/tests/PHPUnit/Integration/RowEvolutionTest.php
+++ b/tests/PHPUnit/Integration/RowEvolutionTest.php
@@ -171,6 +171,21 @@ class Test_Piwik_Integration_RowEvolution extends IntegrationTestCase
)
));
+ // test multi row evolution when there is no data
+ $return[] = array('API.getRowEvolution', array(
+ 'testSuffix' => '_multiWithNoData',
+ 'periods' => 'day',
+ 'idSite' => $idSite,
+ 'date' => $today,
+ 'otherRequestParameters' => array(
+ 'date' => '2010-04-01,2010-04-06',
+ 'period' => 'day',
+ 'apiModule' => 'Referers',
+ 'apiAction' => 'getWebsites',
+ // no label
+ )
+ ));
+
// (non-rowevolution test) test flattener w/ search engines to make sure
// queued filters are not applied twice
$return[] = array('Referers.getSearchEngines', array(