From befb48d8935b59a42757cbe0d87cff6f67203b60 Mon Sep 17 00:00:00 2001 From: diosmosis Date: Wed, 17 Apr 2013 04:56:50 +0000 Subject: Fixes #3898, fix error that occurs when multi row evolution is called w/o labels for periods w/ no data. --- tests/PHPUnit/Integration/RowEvolutionTest.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tests') 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( -- cgit v1.2.3