Skip to content
Extraits de code Groupes Projets
Valider 00030300 rédigé par mattab's avatar mattab
Parcourir les fichiers

Refs #4503 adding test cases showing the missing feature / exception message

parent 26753a46
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Affichage de avec 54 ajouts et 0 suppression
......@@ -55,6 +55,7 @@ class Test_Piwik_Integration_EcommerceOrderWithItems extends IntegrationTestCase
);
// 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 @@ class Test_Piwik_Integration_EcommerceOrderWithItems extends IntegrationTestCase
'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!',
......
<?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>
\ No newline at end of file
<?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>
\ No newline at end of file
<?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>
\ No newline at end of file
<?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>
\ No newline at end of file
<?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>
\ No newline at end of file
<?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>
\ No newline at end of file
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter