diff --git a/tests/PHPUnit/System/ArchiveCronTest.php b/tests/PHPUnit/System/ArchiveCronTest.php index c0a834b5d79a52f09ee9024263ba96c6fea00690..ea1296e5bccd11e2b4082488e95852bb7a48a5ad 100644 --- a/tests/PHPUnit/System/ArchiveCronTest.php +++ b/tests/PHPUnit/System/ArchiveCronTest.php @@ -25,6 +25,9 @@ use Exception; */ class ArchiveCronTest extends SystemTestCase { + /** + * @var ManySitesImportedLogs + */ public static $fixture = null; // initialized below class definition public function getApiForTesting() @@ -35,21 +38,21 @@ class ArchiveCronTest extends SystemTestCase // 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)); -// -// -// } + 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',