diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-03-31 05:23:50 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2015-04-01 00:36:21 +0300 |
commit | 8f9b07d7dd4c70117df785d5b22416a325f2a342 (patch) | |
tree | ad75bd25cdea32d4933a31eb59cb3e04e25c149e /tests/PHPUnit/System/ManyVisitorsOneWebsiteTest.php | |
parent | 1b545d301d8248118243dd21e33a3e1aca285f6c (diff) |
refs #7458 fix memory error in API Live.getLastVisitsDetails when filter_offset is large
Diffstat (limited to 'tests/PHPUnit/System/ManyVisitorsOneWebsiteTest.php')
-rwxr-xr-x | tests/PHPUnit/System/ManyVisitorsOneWebsiteTest.php | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/tests/PHPUnit/System/ManyVisitorsOneWebsiteTest.php b/tests/PHPUnit/System/ManyVisitorsOneWebsiteTest.php index 50b113d820..2a32d7855c 100755 --- a/tests/PHPUnit/System/ManyVisitorsOneWebsiteTest.php +++ b/tests/PHPUnit/System/ManyVisitorsOneWebsiteTest.php @@ -131,31 +131,26 @@ class ManyVisitorsOneWebsiteTest extends SystemTestCase 'idSite' => $idSite, 'date' => $dateString, 'periods' => 'month', - 'testSuffix' => '_Live.getLastVisitsDetails_sortByVisitCount', - 'otherRequestParameters' => array('filter_sort_order' => 'desc', 'filter_sort_column' => 'visitCount', 'filter_limit' => 7) + 'testSuffix' => '_Live.getLastVisitsDetails_sortByIdVisit', + 'otherRequestParameters' => array('filter_sort_order' => 'desc', 'filter_sort_column' => 'idVisit', 'filter_limit' => 7) )); - // #5950 + // #7458 $apiToTest[] = array('Live.getLastVisitsDetails', array( 'idSite' => $idSite, 'date' => $dateString, 'periods' => 'month', - 'testSuffix' => '_Live.getLastVisitsDetails_sortByIdVisit', - 'otherRequestParameters' => array('filter_sort_order' => 'desc', 'filter_sort_column' => 'idVisit', 'filter_limit' => 7) + 'testSuffix' => '_Live.getLastVisitsDetails_offsetAndLimit_1', + 'otherRequestParameters' => array('filter_offset' => '1', 'filter_limit' => 3) )); - - // #5950 $apiToTest[] = array('Live.getLastVisitsDetails', array( 'idSite' => $idSite, 'date' => $dateString, 'periods' => 'month', - 'testSuffix' => '_Live.getLastVisitsDetails_sortByIdVisitAsc', - 'otherRequestParameters' => array('filter_sort_order' => 'asc', - 'filter_sort_column' => 'idVisit', - 'filter_limit' => 7, - 'hideColumns' => 'latitude,longitude' // Mysqli has troubles with lat/long rounding - ) + 'testSuffix' => '_Live.getLastVisitsDetails_offsetAndLimit_2', + 'otherRequestParameters' => array('filter_offset' => '4', 'filter_limit' => 3) )); + } // this also fails on all PHP versions, it seems randomly. |