diff --git a/tests/PHPUnit/Integration/ManyVisitorsOneWebsiteTest.php b/tests/PHPUnit/Integration/ManyVisitorsOneWebsiteTest.php index b35b2bdef6afd73c078c1835f749507a2f71ded4..dbf6c34ce140897b2dfddbb1fab7ad213508f287 100755 --- a/tests/PHPUnit/Integration/ManyVisitorsOneWebsiteTest.php +++ b/tests/PHPUnit/Integration/ManyVisitorsOneWebsiteTest.php @@ -39,7 +39,7 @@ class Test_Piwik_Integration_ManyVisitorsOneWebsiteTest extends IntegrationTestC // Note: we must set 'UserCountry.getLocationFromIP' since it's "excluded" by default in setApiNotToCall $apiToCall = array('UserCountry'); - return array( + $apiToTest = array( array($apiToCall, array('idSite' => $idSite, 'date' => $dateTime, @@ -98,23 +98,27 @@ class Test_Piwik_Integration_ManyVisitorsOneWebsiteTest extends IntegrationTestC 'periods' => array('month'), 'otherRequestParameters' => array('ip' => '194.57.91.215') )), + ); - array('Live.getLastVisitsDetails', array( + // Randomly fails on 5.3 + if(!self::isPhpVersion53()) { + $apiToTest[] = array('Live.getLastVisitsDetails', array( 'idSite' => $idSite, 'date' => $dateString, 'periods' => 'month', 'testSuffix' => '_Live.getLastVisitsDetails_sortAsc', 'otherRequestParameters' => array('filter_sort_order' => 'asc', 'filter_limit' => 7) - )), + )); - array('Live.getLastVisitsDetails', array( + $apiToTest[] = array('Live.getLastVisitsDetails', array( 'idSite' => $idSite, 'date' => $dateString, 'periods' => 'month', 'testSuffix' => '_Live.getLastVisitsDetails_sortDesc', 'otherRequestParameters' => array('filter_sort_order' => 'desc', 'filter_limit' => 7) - )), - ); + )); + } + return $apiToTest; } }