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:
Diffstat (limited to 'plugins/Ecommerce/tests/System/EcommerceOrderWithItemsTest.php')
-rw-r--r--plugins/Ecommerce/tests/System/EcommerceOrderWithItemsTest.php25
1 files changed, 24 insertions, 1 deletions
diff --git a/plugins/Ecommerce/tests/System/EcommerceOrderWithItemsTest.php b/plugins/Ecommerce/tests/System/EcommerceOrderWithItemsTest.php
index 17c77747c3..a432c345a7 100644
--- a/plugins/Ecommerce/tests/System/EcommerceOrderWithItemsTest.php
+++ b/plugins/Ecommerce/tests/System/EcommerceOrderWithItemsTest.php
@@ -9,8 +9,8 @@ namespace Piwik\Plugins\Ecommerce\tests\System;
use Piwik\Date;
use Piwik\Piwik;
-use Piwik\Tests\Framework\TestCase\SystemTestCase;
use Piwik\Tests\Fixtures\TwoSitesEcommerceOrderWithItems;
+use Piwik\Tests\Framework\TestCase\SystemTestCase;
/**
* Tests API methods after ecommerce orders are tracked.
@@ -304,6 +304,29 @@ class EcommerceOrderWithItemsTest extends SystemTestCase
'testSuffix' => '_productPrice',
'segment' => 'productPrice>500',
]],
+ [
+ ['Live.getLastVisitsDetails', 'Goals.get'],
+ [
+ 'idSite' => $idSite,
+ 'date' => $dateTime,
+ 'periods' => 'day',
+ 'testSuffix' => '_SegmentRevenueOrder',
+ 'segment' => 'revenueOrder>500',
+ ]
+ ],
+ [
+ ['Live.getLastVisitsDetails', 'Goals.get'],
+ [
+ 'idSite' => $idSite,
+ 'date' => $dateTime,
+ 'periods' => 'day',
+ 'testSuffix' => '_SegmentCartRevenueOrder',
+ 'segment' => 'revenueAbandonedCart>100',
+ ]
+ ],
+
+
+
),
self::getApiForTestingScheduledReports($dateTime, 'week')
);