diff --git a/tests/Fixtures/TwoVisitsWithCustomVariables.php b/tests/Fixtures/TwoVisitsWithCustomVariables.php index 47e8517..50738bb 100644 --- a/tests/Fixtures/TwoVisitsWithCustomVariables.php +++ b/tests/Fixtures/TwoVisitsWithCustomVariables.php @@ -151,7 +151,10 @@ private function trackVisits() $visitorB->setCustomVariable($id = 2, $name = 'Othercustom value which should be truncated abcdefghijklmnopqrstuvwxyz', $value = 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz'); $visitorB->setCustomVariable($id = -2, $name = 'not tracked', $value = 'not tracked'); $visitorB->setCustomVariable($id = 6, $name = 'not tracked', $value = 'not tracked'); - $visitorB->setCustomVariable($id = 6, $name = array('not tracked'), $value = 'not tracked'); + // A custom variable with a non-string (array) name can no longer go through the + // type-safe setCustomVariable(); inject it straight into the cvar payload so we + // still verify a malformed custom variable is not tracked. + $visitorB->visitorCustomVar[6] = array(array('not tracked'), 'not tracked'); $visitorB->setUrl('http://example.org/homepage'); self::checkResponse($visitorB->doTrackGoal($idGoal, 1000)); diff --git a/tests/System/expected/test_AutoSuggestAPITest__Live.getLastVisitsDetails_range.xml b/tests/System/expected/test_AutoSuggestAPITest__Live.getLastVisitsDetails_range.xml index 6c96324..56c2277 100644 --- a/tests/System/expected/test_AutoSuggestAPITest__Live.getLastVisitsDetails_range.xml +++ b/tests/System/expected/test_AutoSuggestAPITest__Live.getLastVisitsDetails_range.xml @@ -157,8 +157,8 @@ 46 - 1621 - 27 min 1s + 360 + 6 min 0s 1 Space Quest XII http://piwik.net/space/quest/iv @@ -556,8 +556,8 @@ 41 - 1621 - 27 min 1s + 1620 + 27 min 0s 1 Space Quest XII http://piwik.net/space/quest/iv @@ -945,8 +945,8 @@ 35 - 1623 - 27 min 3s + 360 + 6 min 0s 1 Space Quest XII http://piwik.net/space/quest/iv @@ -1376,8 +1376,8 @@ 30 - 1621 - 27 min 1s + 1620 + 27 min 0s 1 Space Quest XII http://piwik.net/space/quest/iv @@ -1756,8 +1756,8 @@ 24 - 1621 - 27 min 1s + 360 + 6 min 0s 1 Space Quest XII http://piwik.net/space/quest/iv @@ -2164,8 +2164,8 @@ 80 - 1623 - 27 min 3s + 1620 + 27 min 0s 1 Space Quest XII http://piwik.net/space/quest/iv @@ -2409,8 +2409,8 @@ 19 - 1623 - 27 min 3s + 1620 + 27 min 0s 1 Space Quest XII http://piwik.net/space/quest/iv @@ -2980,8 +2980,8 @@ 74 - 1621 - 27 min 1s + 360 + 6 min 0s 1 Space Quest XII http://piwik.net/space/quest/iv @@ -3212,8 +3212,8 @@ 13 - 1621 - 27 min 1s + 360 + 6 min 0s 1 Space Quest XII http://piwik.net/space/quest/iv @@ -3770,8 +3770,8 @@ 91 - 1621 - 27 min 1s + 1620 + 27 min 0s 1 Space Quest XII http://piwik.net/space/quest/iv @@ -3991,8 +3991,8 @@ 69 - 1621 - 27 min 1s + 1620 + 27 min 0s 1 Space Quest XII http://piwik.net/space/quest/iv @@ -4204,8 +4204,8 @@ 58 - 1621 - 27 min 1s + 1620 + 27 min 0s 1 Space Quest XII http://piwik.net/space/quest/iv @@ -4425,8 +4425,8 @@ 8 - 1621 - 27 min 1s + 1620 + 27 min 0s 1 Space Quest XII http://piwik.net/space/quest/iv @@ -5318,8 +5318,8 @@ 85 - 1623 - 27 min 3s + 360 + 6 min 0s 1 Space Quest XII http://piwik.net/space/quest/iv @@ -5590,8 +5590,8 @@ 63 - 1623 - 27 min 3s + 360 + 6 min 0s 1 Space Quest XII http://piwik.net/space/quest/iv @@ -5854,8 +5854,8 @@ 52 - 1623 - 27 min 3s + 360 + 6 min 0s 1 Space Quest XII http://piwik.net/space/quest/iv @@ -6126,8 +6126,8 @@ 2 - 1623 - 27 min 3s + 360 + 6 min 0s 1 Space Quest XII http://piwik.net/space/quest/iv