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

Refs #4828 Adding integration test replicating the SQL error

parent 0bd88be2
Aucune requête de fusion associée trouvée
Affichage de
avec 62 ajouts et 11 suppressions
......@@ -85,7 +85,8 @@ class Test_Piwik_Integration_EcommerceOrderWithItems extends IntegrationTestCase
),
// day tests
array($dayApi, array('idSite' => $idSite, 'date' => $dateTime, 'periods' => array('day'), 'otherRequestParameters' => array('_leavePiwikCoreVariables' => 1))),
array($dayApi, array('idSite' => $idSite, 'date' => $dateTime, 'periods' => array('day'),
'otherRequestParameters' => array('_leavePiwikCoreVariables' => 1))),
// goals API week tests
array($goalWeekApi, array('idSite' => $idSite, 'date' => $dateTime, 'periods' => array('week'))),
......@@ -209,9 +210,22 @@ class Test_Piwik_Integration_EcommerceOrderWithItems extends IntegrationTestCase
'segment' => 'visitConvertedGoalId==666',
'testSuffix' => '_SegmentNoVisit_HaveConvertedNonExistingGoal')),
// test segment visitEcommerceStatus and visitConvertedGoalId
array($apiWithSegments_visitConvertedGoal,
array(
'idSite' => $idSite,
'date' => $dateTime,
'periods' => array('week'),
'segment' => 'visitEcommerceStatus!=ordered;visitConvertedGoalId==1',
'testSuffix' => '_SegmentVisitHasNotOrderedAndConvertedGoal')),
// test segment pageTitle
array('VisitsSummary.get', array('idSite' => $idSite, 'date' => $dateTime,
'periods' => array('day'), 'segment' => 'pageTitle==incredible title!',
array('VisitsSummary.get', array('idSite' => $idSite,
'date' => $dateTime,
'periods' => array('day'),
'segment' => 'pageTitle==incredible title!',
'testSuffix' => '_SegmentPageTitleMatch')),
// test Live! output is OK also for the visit that just bought something (other visits leave an abandoned cart)
......
<?xml version="1.0" encoding="utf-8" ?>
<result>
<error message="SQLSTATE[42S22]: Column not found: 1054 Unknown column 'log_conversion_item' in 'field list'
--&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="SQLSTATE[42S22]: Column not found: 1054 Unknown column 'log_conversion_item' in 'field list'
--&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="SQLSTATE[42S22]: Column not found: 1054 Unknown column 'log_conversion_item' in 'field list'
--&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="SQLSTATE[42S22]: Column not found: 1054 Unknown column 'log_conversion_item' in 'field list'
--&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>
<nb_uniq_visitors>1</nb_uniq_visitors>
<nb_visits>1</nb_visits>
<nb_actions>4</nb_actions>
<nb_visits_converted>1</nb_visits_converted>
<bounce_count>0</bounce_count>
<sum_visit_length>721</sum_visit_length>
<max_actions>4</max_actions>
<bounce_rate>0%</bounce_rate>
<nb_actions_per_visit>4</nb_actions_per_visit>
<avg_time_on_site>721</avg_time_on_site>
</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