From 270851a03c6d9ee83cc5a9903557bda234737a59 Mon Sep 17 00:00:00 2001
From: mattab <matthieu.aubry@gmail.com>
Date: Tue, 8 Oct 2013 17:16:12 +1300
Subject: [PATCH] Fixing build

---
 .../TwoVisitsWithCustomVariables_SegmentMatchNONETest.php | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/tests/PHPUnit/Integration/TwoVisitsWithCustomVariables_SegmentMatchNONETest.php b/tests/PHPUnit/Integration/TwoVisitsWithCustomVariables_SegmentMatchNONETest.php
index 38e4246bde..7601e74727 100755
--- a/tests/PHPUnit/Integration/TwoVisitsWithCustomVariables_SegmentMatchNONETest.php
+++ b/tests/PHPUnit/Integration/TwoVisitsWithCustomVariables_SegmentMatchNONETest.php
@@ -58,7 +58,13 @@ class Test_Piwik_Integration_TwoVisitsWithCustomVariables_SegmentMatchNONE exten
             if ($segment['segment'] == 'visitEcommerceStatus') {
                 $value = 'none';
             }
-            $segmentExpression[] = $segment['segment'] . '!=' . $value;
+            $matchNone = $segment['segment'] . '!=' . $value;
+
+            // deviceType != campaign matches ALL visits, but we want to match None
+            if($segment['segment'] == 'deviceType') {
+                $matchNone = $segment['segment'] . '==car%20browser';
+            }
+            $segmentExpression[] = $matchNone;
         }
 
         $segment = implode(";", $segmentExpression);
-- 
GitLab