Skip to content

Commit

Permalink
Refs #4503 adding test cases showing the missing feature / exception …
Browse files Browse the repository at this point in the history
…message
  • Loading branch information
mattab committed Feb 11, 2014
1 parent 26753a4 commit 0003030
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/PHPUnit/Integration/EcommerceOrderWithItemsTest.php
Expand Up @@ -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
Expand Down Expand Up @@ -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!',
Expand Down
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<result>
<error message="Table 'log_conversion' can't be joined for segmentation
--&gt; To temporarily debug this error further, set const DISPLAY_BACKTRACE_DEBUG=true; in ResponseBuilder.php" />
</result>
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<result>
<error message="Table 'log_conversion' can't be joined for segmentation
--&gt; To temporarily debug this error further, set const DISPLAY_BACKTRACE_DEBUG=true; in ResponseBuilder.php" />
</result>
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<result>
<error message="Table 'log_conversion' can't be joined for segmentation
--&gt; To temporarily debug this error further, set const DISPLAY_BACKTRACE_DEBUG=true; in ResponseBuilder.php" />
</result>
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<result>
<error message="Table 'log_conversion' can't be joined for segmentation
--&gt; To temporarily debug this error further, set const DISPLAY_BACKTRACE_DEBUG=true; in ResponseBuilder.php" />
</result>
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<result>
<error message="Table 'log_conversion' can't be joined for segmentation
--&gt; To temporarily debug this error further, set const DISPLAY_BACKTRACE_DEBUG=true; in ResponseBuilder.php" />
</result>
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<result>
<error message="Table 'log_conversion' can't be joined for segmentation
--&gt; To temporarily debug this error further, set const DISPLAY_BACKTRACE_DEBUG=true; in ResponseBuilder.php" />
</result>

0 comments on commit 0003030

Please sign in to comment.