diff --git a/tests/PHPUnit/System/ImportLogsTest.php b/tests/PHPUnit/System/ImportLogsTest.php
index cb2131f332fd7dbe45aeef135e20c29c62a532be..e622265dffcc27f666cb7911d7913f1f2aa81090 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();