From 6c2b9bcc05584d45df1ac0dbeaf407ddc3cc6ba3 Mon Sep 17 00:00:00 2001
From: diosmosis <benaka@piwik.pro>
Date: Sun, 12 Apr 2015 16:25:04 -0700
Subject: [PATCH] Tweak to ImportLogsTest change in
 https://github.com/piwik/piwik/commit/dab5921b9a80dfad34e80acf81e1408c435e2269.

---
 tests/PHPUnit/System/ImportLogsTest.php | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/tests/PHPUnit/System/ImportLogsTest.php b/tests/PHPUnit/System/ImportLogsTest.php
index cb2131f332..e622265dff 100755
--- a/tests/PHPUnit/System/ImportLogsTest.php
+++ b/tests/PHPUnit/System/ImportLogsTest.php
@@ -28,9 +28,7 @@ class ImportLogsTest extends SystemTestCase
     {
         parent::setUp();
 
-        $testingEnvironment = new \Piwik_TestingEnvironment();
-        $testingEnvironment->configOverride = null;
-        $testingEnvironment->save();
+        $this->resetTestingEnvironmentChanges();
     }
 
     /**
@@ -150,6 +148,13 @@ class ImportLogsTest extends SystemTestCase
     {
         return 'ImportLogs';
     }
+
+    private function resetTestingEnvironmentChanges()
+    {
+        $testingEnvironment = new \Piwik_TestingEnvironment();
+        $testingEnvironment->configOverride = null;
+        $testingEnvironment->save();
+    }
 }
 
 ImportLogsTest::$fixture = new ManySitesImportedLogs();
-- 
GitLab