From 49b62353e34ef78f8296105af6a6b5a30a856e6f Mon Sep 17 00:00:00 2001
From: sgiehl <stefan@piwik.org>
Date: Tue, 31 May 2016 00:16:49 +0200
Subject: [PATCH] fix some tests

---
 plugins/UserCountry/tests/Unit/UserCountryTest.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/plugins/UserCountry/tests/Unit/UserCountryTest.php b/plugins/UserCountry/tests/Unit/UserCountryTest.php
index dddbce6b9f..c2db05db2d 100644
--- a/plugins/UserCountry/tests/Unit/UserCountryTest.php
+++ b/plugins/UserCountry/tests/Unit/UserCountryTest.php
@@ -109,6 +109,9 @@ class UserCountryTest extends \PHPUnit_Framework_TestCase
      */
     public function testGeoIpDownloadInvalidUrl($url)
     {
+        // unset translations, otherwise Exception message will be translated
+        StaticContainer::get('Piwik\Translation\Translator')->reset();
+
         $updater = new Piwik_UserCountry_GeoIPAutoUpdater_publictest();
         try {
             $updater->downloadFile('loc', $url);
-- 
GitLab