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

fixing few more tests

parent 7095a60e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -324,11 +324,13 @@ class Plugin_ReportTest extends DatabaseTestCase ...@@ -324,11 +324,13 @@ class Plugin_ReportTest extends DatabaseTestCase
'nb_visits' => 'General_ColumnNbVisits', 'nb_visits' => 'General_ColumnNbVisits',
'nb_uniq_visitors' => 'General_ColumnNbUniqVisitors', 'nb_uniq_visitors' => 'General_ColumnNbUniqVisitors',
'nb_actions' => 'General_ColumnNbActions', 'nb_actions' => 'General_ColumnNbActions',
'nb_users' => 'General_ColumnNbUsers'
), ),
'metricsDocumentation' => array( 'metricsDocumentation' => array(
'nb_visits' => 'General_ColumnNbVisitsDocumentation', 'nb_visits' => 'General_ColumnNbVisitsDocumentation',
'nb_uniq_visitors' => 'General_ColumnNbUniqVisitorsDocumentation', 'nb_uniq_visitors' => 'General_ColumnNbUniqVisitorsDocumentation',
'nb_actions' => 'General_ColumnNbActionsDocumentation', 'nb_actions' => 'General_ColumnNbActionsDocumentation',
'nb_users' => 'General_ColumnNbUsersDocumentation'
), ),
'processedMetrics' => array( 'processedMetrics' => array(
'nb_actions_per_visit' => 'General_ColumnActionsPerVisit', 'nb_actions_per_visit' => 'General_ColumnActionsPerVisit',
......
...@@ -77,21 +77,21 @@ class TwoVisitsWithCustomVariablesSegmentMatchVisitorTypeTest extends Integratio ...@@ -77,21 +77,21 @@ class TwoVisitsWithCustomVariablesSegmentMatchVisitorTypeTest extends Integratio
// ) // )
'archive_blob_2010_01' => 28, 'archive_blob_2010_01' => 28,
// This contains all 'last N' weeks & days, // This contains all 'last N' weeks & days,
// (1 metrics // (2 metrics
// + 2 referrer metrics // + 2 referrer metrics
// + 3 done flag ) // + 3 done flag )
// * 2 segments // * 2 segments
// + 1 Done flag per Plugin, for each "Last N" date // + 1 Done flag per Plugin, for each "Last N" date
'archive_numeric_2010_01' => 142, 'archive_numeric_2010_01' => 144,
// 2) CHECK 'week' archive stored in December (week starts the month before) // 2) CHECK 'week' archive stored in December (week starts the month before)
// We expect 2 segments * (1 custom variable name + 2 ref metrics + 5 subtable for the values of the name + 5 referrers blob) // We expect 2 segments * (1 custom variable name + 2 ref metrics + 5 subtable for the values of the name + 5 referrers blob)
'archive_blob_2009_12' => 28, 'archive_blob_2009_12' => 28,
// 6 metrics, // 7 metrics,
// 2 Referrer metrics (Referrers_distinctSearchEngines/Referrers_distinctKeywords), // 2 Referrer metrics (Referrers_distinctSearchEngines/Referrers_distinctKeywords),
// 3 done flag (referrers, CustomVar, VisitsSummary), // 3 done flag (referrers, CustomVar, VisitsSummary),
// X * 2 segments // X * 2 segments
'archive_numeric_2009_12' => (6 + 2 + 3) * 2, 'archive_numeric_2009_12' => (7 + 2 + 3) * 2,
); );
foreach ($tests as $table => $expectedRows) { foreach ($tests as $table => $expectedRows) {
$sql = "SELECT count(*) FROM " . Common::prefixTable($table); $sql = "SELECT count(*) FROM " . Common::prefixTable($table);
......
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