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

Adding basic test

parent 652979a6
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -31,6 +31,20 @@ class Test_Piwik_Integration_ArchiveCronTest extends IntegrationTestCase ...@@ -31,6 +31,20 @@ class Test_Piwik_Integration_ArchiveCronTest extends IntegrationTestCase
'periods' => array('day', 'week', 'month', 'year'))); 'periods' => array('day', 'week', 'month', 'year')));
foreach (self::$fixture->getDefaultSegments() as $segmentName => $info) { foreach (self::$fixture->getDefaultSegments() as $segmentName => $info) {
if($segmentName =='segmentOnlySuperuser') {
// Live detail should match no visitor
$idSites = array(self::$fixture->idSite2);
foreach($idSites as $idSite) {
$results[] = array('Live.getLastVisitsDetails', array('idSite' => $idSite,
'date' => '2012-08-09',
'periods' => array('month', 'year'),
'segment' => $info['definition'],
'testSuffix' => '_' . $segmentName . '_idSite' .$idSite
));
}
}
$results[] = array('VisitsSummary.get', array('idSite' => 'all', $results[] = array('VisitsSummary.get', array('idSite' => 'all',
'date' => '2012-08-09', 'date' => '2012-08-09',
'periods' => array('day', 'week', 'month', 'year'), 'periods' => array('day', 'week', 'month', 'year'),
......
<?xml version="1.0" encoding="utf-8" ?>
<result />
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" ?>
<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