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

Remove changes to tests that should not be in this pull request.

parent da13fc45
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -32,20 +32,24 @@ class ArchiveCronTest extends IntegrationTestCase
$results = array();
// First, API calls for Segmented reports
foreach (self::$fixture->getDefaultSegments() as $segmentName => $info) {
$results[] = array('VisitsSummary.get', array('idSite' => 'all',
'date' => '2012-08-09',
'periods' => array('day', 'week', 'month', 'year'),
'segment' => $info['definition'],
'testSuffix' => '_' . $segmentName));
}
// Disabling these tests as they randomly fail... This could actually be a bug.
// FIXME - I have failed finding the cause for these test to randomly fail
// eg.
// foreach (self::$fixture->getDefaultSegments() as $segmentName => $info) {
// $results[] = array('VisitsSummary.get', array('idSite' => 'all',
// 'date' => '2012-08-09',
// 'periods' => array('day', 'week', 'month', 'year'),
// 'segment' => $info['definition'],
// 'testSuffix' => '_' . $segmentName));
//
//
// }
// API Call Without segments
// TODO uncomment week and year period
$results[] = array('VisitsSummary.get', array('idSite' => 'all',
'date' => '2012-08-09',
'periods' => array('day', 'month', 'year', 'week')));
'periods' => array('day', 'month', /* 'year', 'week' */)));
$results[] = array('VisitsSummary.get', array('idSite' => 'all',
'date' => '2012-08-09',
......@@ -57,6 +61,9 @@ class ArchiveCronTest extends IntegrationTestCase
ManySitesImportedLogs::SEGMENT_PRE_ARCHIVED_CONTAINS_ENCODED
);
foreach($segments as $segment) {
// TODO debugging travis
continue;
// Test with a pre-processed segment
$results[] = array(array('VisitsSummary.get', 'Live.getLastVisitsDetails', 'VisitFrequency.get'),
array('idSite' => '1',
......
......@@ -84,14 +84,14 @@ class CustomEventsTest extends IntegrationTestCase
),
// eventValue should not match any page view
array('Actions.getPageUrls', array(
'idSite' => $idSite1,
'date' => $dateTime,
'periods' => $dayPeriod,
'segment' => "eventValue>0",
'setDateLastN' => false,
'testSuffix' => '_eventSegmentMatchNoAction')
),
// array('Actions.getPageUrls', array(
// 'idSite' => $idSite1,
// 'date' => $dateTime,
// 'periods' => $dayPeriod,
// 'segment' => "eventValue>0",
// 'setDateLastN' => false,
// 'testSuffix' => '_eventSegmentMatchNoAction')
// ),
);
$apiToCallProcessedReportMetadata = array(
......
......@@ -145,13 +145,13 @@ class ManyVisitorsOneWebsiteTest extends IntegrationTestCase
}
// this also fails on all PHP versions, it seems randomly.
$apiToTest[] = array('Live.getLastVisitsDetails', array(
'idSite' => $idSite,
'date' => $dateString,
'periods' => 'month',
'testSuffix' => '_Live.getLastVisitsDetails_sortAsc',
'otherRequestParameters' => array('filter_sort_order' => 'asc', 'filter_limit' => 7)
));
// $apiToTest[] = array('Live.getLastVisitsDetails', array(
// 'idSite' => $idSite,
// 'date' => $dateString,
// 'periods' => 'month',
// 'testSuffix' => '_Live.getLastVisitsDetails_sortAsc',
// 'otherRequestParameters' => array('filter_sort_order' => 'asc', 'filter_limit' => 7)
// ));
return $apiToTest;
}
......
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