diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-09-29 12:03:20 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-09-29 12:03:20 +0400 |
commit | 7aa6dc5eeabaed22587c4b24070d2ef4a490e585 (patch) | |
tree | bcac5eaa98038322f7ab2f33deb789a488fcd690 /tests | |
parent | 9f9c5a015c7ed2830baba3ce134aef4d2cba0461 (diff) |
lat+long show differently on mysqli (more precision)
Diffstat (limited to 'tests')
2 files changed, 6 insertions, 15 deletions
diff --git a/tests/PHPUnit/Integration/ManyVisitorsOneWebsiteTest.php b/tests/PHPUnit/Integration/ManyVisitorsOneWebsiteTest.php index a7f41f6b3b..c7f3d9ca00 100755 --- a/tests/PHPUnit/Integration/ManyVisitorsOneWebsiteTest.php +++ b/tests/PHPUnit/Integration/ManyVisitorsOneWebsiteTest.php @@ -108,6 +108,7 @@ class ManyVisitorsOneWebsiteTest extends IntegrationTestCase // Randomly fails on 5.3 if(!self::isPhpVersion53()) { + $apiToTest[] = array('Live.getLastVisitsDetails', array( 'idSite' => $idSite, 'date' => $dateString, @@ -140,7 +141,11 @@ class ManyVisitorsOneWebsiteTest extends IntegrationTestCase 'date' => $dateString, 'periods' => 'month', 'testSuffix' => '_Live.getLastVisitsDetails_sortByIdVisitAsc', - 'otherRequestParameters' => array('filter_sort_order' => 'asc', 'filter_sort_column' => 'idVisit', 'filter_limit' => 7) + 'otherRequestParameters' => array('filter_sort_order' => 'asc', + 'filter_sort_column' => 'idVisit', + 'filter_limit' => 7, + 'hideColumns' => 'latitude,longitude' // Mysqli has troubles with lat/long rounding + ) )); } diff --git a/tests/PHPUnit/Integration/expected/test_ManyVisitorsOneWebsiteTest_Live.getLastVisitsDetails_sortByIdVisitAsc__Live.getLastVisitsDetails_month.xml b/tests/PHPUnit/Integration/expected/test_ManyVisitorsOneWebsiteTest_Live.getLastVisitsDetails_sortByIdVisitAsc__Live.getLastVisitsDetails_month.xml index 1ab2bce22c..cfc7a48e6e 100644 --- a/tests/PHPUnit/Integration/expected/test_ManyVisitorsOneWebsiteTest_Live.getLastVisitsDetails_sortByIdVisitAsc__Live.getLastVisitsDetails_month.xml +++ b/tests/PHPUnit/Integration/expected/test_ManyVisitorsOneWebsiteTest_Live.getLastVisitsDetails_sortByIdVisitAsc__Live.getLastVisitsDetails_month.xml @@ -101,8 +101,6 @@ <regionCode>P3</regionCode> <city>Stratford-upon-Avon</city> <location>Stratford-upon-Avon, Warwickshire, United Kingdom</location> - <latitude>123.456001</latitude> - <longitude>21.320999</longitude> <visitLocalTime>12:34:06</visitLocalTime> <visitLocalHour>12</visitLocalHour> <daysSinceLastVisit>0</daysSinceLastVisit> @@ -257,8 +255,6 @@ <regionCode>P3</regionCode> <city>Stratford-upon-Avon</city> <location>Stratford-upon-Avon, Warwickshire, United Kingdom</location> - <latitude>123.456001</latitude> - <longitude>21.320999</longitude> <visitLocalTime>12:34:06</visitLocalTime> <visitLocalHour>12</visitLocalHour> <daysSinceLastVisit>10</daysSinceLastVisit> @@ -382,8 +378,6 @@ <regionCode>A6</regionCode> <city>Besançon</city> <location>Besançon, Franche-Comte, France</location> - <latitude>47.249001</latitude> - <longitude>6.018000</longitude> <visitLocalTime>12:34:06</visitLocalTime> <visitLocalHour>12</visitLocalHour> <daysSinceLastVisit>0</daysSinceLastVisit> @@ -538,8 +532,6 @@ <regionCode>A6</regionCode> <city>Besançon</city> <location>Besançon, Franche-Comte, France</location> - <latitude>47.249001</latitude> - <longitude>6.018000</longitude> <visitLocalTime>12:34:06</visitLocalTime> <visitLocalHour>12</visitLocalHour> <daysSinceLastVisit>10</daysSinceLastVisit> @@ -663,8 +655,6 @@ <regionCode>BC</regionCode> <city>Vancouver</city> <location>Vancouver, British Columbia, Canada</location> - <latitude>49.250000</latitude> - <longitude>-123.133003</longitude> <visitLocalTime>12:34:06</visitLocalTime> <visitLocalHour>12</visitLocalHour> <daysSinceLastVisit>0</daysSinceLastVisit> @@ -819,8 +809,6 @@ <regionCode>BC</regionCode> <city>Vancouver</city> <location>Vancouver, British Columbia, Canada</location> - <latitude>49.250000</latitude> - <longitude>-123.133003</longitude> <visitLocalTime>12:34:06</visitLocalTime> <visitLocalHour>12</visitLocalHour> <daysSinceLastVisit>10</daysSinceLastVisit> @@ -936,8 +924,6 @@ <regionCode /> <city /> <location>Italy</location> - <latitude /> - <longitude /> <visitLocalTime>12:34:06</visitLocalTime> <visitLocalHour>12</visitLocalHour> <daysSinceLastVisit>0</daysSinceLastVisit> |