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-08 02:35:42 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-05-08 02:35:42 +0300
commit08811d96a198ec08c6630967916defd2df6a24f7 (patch)
tree15f6f0328f22246cd509da66d4f93e7b823a1d48 /tests/PHPUnit/System/EcommerceOrderWithItemsTest.php
parent8d7096b6dfb6933efc3719b7c14962f6db946441 (diff)
added a test for avg order revenue
Diffstat (limited to 'tests/PHPUnit/System/EcommerceOrderWithItemsTest.php')
-rwxr-xr-xtests/PHPUnit/System/EcommerceOrderWithItemsTest.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/PHPUnit/System/EcommerceOrderWithItemsTest.php b/tests/PHPUnit/System/EcommerceOrderWithItemsTest.php
index 5ac300b2e9..5e02c2493d 100755
--- a/tests/PHPUnit/System/EcommerceOrderWithItemsTest.php
+++ b/tests/PHPUnit/System/EcommerceOrderWithItemsTest.php
@@ -245,6 +245,16 @@ class EcommerceOrderWithItemsTest extends SystemTestCase
array($goalWeekApi, array('idSite' => $idSite2, 'date' => $dateTime, 'periods' => array('week'),
'testSuffix' => '_Website2')),
+ // see https://github.com/piwik/piwik/issues/7851 make sure avg_order_revenue is calculated correct
+ // even if only this column is given
+ array('Goals.get', array('idSite' => $idSite,
+ 'date' => $dateTime,
+ 'periods' => array('week'),
+ 'otherRequestParameters' => array(
+ 'idGoal' => Piwik::LABEL_ID_GOAL_IS_ECOMMERCE_ORDER,
+ 'columns' => 'avg_order_revenue'),
+ 'testSuffix' => '_AvgOrderRevenue')),
+
),
self::getApiForTestingScheduledReports($dateTime, 'week')
);