diff --git a/tests/PHPUnit/Integration/EcommerceOrderWithItemsTest.php b/tests/PHPUnit/Integration/EcommerceOrderWithItemsTest.php
index 012849f4223..5f15fb484b0 100755
--- a/tests/PHPUnit/Integration/EcommerceOrderWithItemsTest.php
+++ b/tests/PHPUnit/Integration/EcommerceOrderWithItemsTest.php
@@ -55,6 +55,7 @@ public function getApiForTesting()
);
// Normal standard goal
+ $apiWithSegments_visitConvertedGoal = $apiWithSegments + array('Goals.get', 'VisitsSummary.get');
return array_merge(array(
// Segment: This will match the first visit of the fixture only
@@ -181,6 +182,23 @@ public function getApiForTesting()
'periods' => array('week'), 'segment' => 'visitorType==returningCustomer',
'testSuffix' => '_SegmentReturningCustomers')),
+ // test segment visitConvertedGoalId with Ecommerce APIs
+ array($apiWithSegments_visitConvertedGoal,
+ array(
+ 'idSite' => $idSite,
+ 'date' => $dateTime,
+ 'periods' => array('day'),
+ 'segment' => 'visitConvertedGoalId==1;visitConvertedGoalId!=2',
+ 'testSuffix' => '_SegmentVisitHasConvertedGoal')),
+
+ array($apiWithSegments_visitConvertedGoal,
+ array(
+ 'idSite' => $idSite,
+ 'date' => $dateTime,
+ 'periods' => array('day'),
+ 'segment' => 'visitConvertedGoalId!=1',
+ 'testSuffix' => '_SegmentVisitHasNotConvertedGoal1')),
+
// test segment pageTitle
array('VisitsSummary.get', array('idSite' => $idSite, 'date' => $dateTime,
'periods' => array('day'), 'segment' => 'pageTitle==incredible title!',
diff --git a/tests/PHPUnit/Integration/expected/test_ecommerceOrderWithItems_SegmentVisitHasConvertedGoal__Goals.getItemsCategory_day.xml b/tests/PHPUnit/Integration/expected/test_ecommerceOrderWithItems_SegmentVisitHasConvertedGoal__Goals.getItemsCategory_day.xml
new file mode 100644
index 00000000000..e730ed6fc45
--- /dev/null
+++ b/tests/PHPUnit/Integration/expected/test_ecommerceOrderWithItems_SegmentVisitHasConvertedGoal__Goals.getItemsCategory_day.xml
@@ -0,0 +1,6 @@
+
+
+
+
\ No newline at end of file
diff --git a/tests/PHPUnit/Integration/expected/test_ecommerceOrderWithItems_SegmentVisitHasConvertedGoal__Goals.getItemsName_day.xml b/tests/PHPUnit/Integration/expected/test_ecommerceOrderWithItems_SegmentVisitHasConvertedGoal__Goals.getItemsName_day.xml
new file mode 100644
index 00000000000..e730ed6fc45
--- /dev/null
+++ b/tests/PHPUnit/Integration/expected/test_ecommerceOrderWithItems_SegmentVisitHasConvertedGoal__Goals.getItemsName_day.xml
@@ -0,0 +1,6 @@
+
+
+
+
\ No newline at end of file
diff --git a/tests/PHPUnit/Integration/expected/test_ecommerceOrderWithItems_SegmentVisitHasConvertedGoal__Goals.getItemsSku_day.xml b/tests/PHPUnit/Integration/expected/test_ecommerceOrderWithItems_SegmentVisitHasConvertedGoal__Goals.getItemsSku_day.xml
new file mode 100644
index 00000000000..e730ed6fc45
--- /dev/null
+++ b/tests/PHPUnit/Integration/expected/test_ecommerceOrderWithItems_SegmentVisitHasConvertedGoal__Goals.getItemsSku_day.xml
@@ -0,0 +1,6 @@
+
+
+
+
\ No newline at end of file
diff --git a/tests/PHPUnit/Integration/expected/test_ecommerceOrderWithItems_SegmentVisitHasNotConvertedGoal1__Goals.getItemsCategory_day.xml b/tests/PHPUnit/Integration/expected/test_ecommerceOrderWithItems_SegmentVisitHasNotConvertedGoal1__Goals.getItemsCategory_day.xml
new file mode 100644
index 00000000000..e730ed6fc45
--- /dev/null
+++ b/tests/PHPUnit/Integration/expected/test_ecommerceOrderWithItems_SegmentVisitHasNotConvertedGoal1__Goals.getItemsCategory_day.xml
@@ -0,0 +1,6 @@
+
+
+
+
\ No newline at end of file
diff --git a/tests/PHPUnit/Integration/expected/test_ecommerceOrderWithItems_SegmentVisitHasNotConvertedGoal1__Goals.getItemsName_day.xml b/tests/PHPUnit/Integration/expected/test_ecommerceOrderWithItems_SegmentVisitHasNotConvertedGoal1__Goals.getItemsName_day.xml
new file mode 100644
index 00000000000..e730ed6fc45
--- /dev/null
+++ b/tests/PHPUnit/Integration/expected/test_ecommerceOrderWithItems_SegmentVisitHasNotConvertedGoal1__Goals.getItemsName_day.xml
@@ -0,0 +1,6 @@
+
+
+
+
\ No newline at end of file
diff --git a/tests/PHPUnit/Integration/expected/test_ecommerceOrderWithItems_SegmentVisitHasNotConvertedGoal1__Goals.getItemsSku_day.xml b/tests/PHPUnit/Integration/expected/test_ecommerceOrderWithItems_SegmentVisitHasNotConvertedGoal1__Goals.getItemsSku_day.xml
new file mode 100644
index 00000000000..e730ed6fc45
--- /dev/null
+++ b/tests/PHPUnit/Integration/expected/test_ecommerceOrderWithItems_SegmentVisitHasNotConvertedGoal1__Goals.getItemsSku_day.xml
@@ -0,0 +1,6 @@
+
+
+
+
\ No newline at end of file