From 6ee666792c2e8c2eb6b21eaa3a424181566edd3b Mon Sep 17 00:00:00 2001
From: Thomas Steur <thomas.steur@googlemail.com>
Date: Tue, 22 Jul 2014 14:08:04 +0200
Subject: [PATCH] refs #5416 maybe this fixes the pluginTests on travis?

---
 plugins/Live/tests/APITest.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/plugins/Live/tests/APITest.php b/plugins/Live/tests/APITest.php
index 588e467ad2..126e0ca106 100644
--- a/plugins/Live/tests/APITest.php
+++ b/plugins/Live/tests/APITest.php
@@ -9,6 +9,7 @@
 namespace Piwik\Plugins\Live\tests;
 
 use Piwik\Date;
+use Piwik\Db;
 use Piwik\Plugins\Goals\API as GoalsApi;
 use Piwik\Plugins\Live\API;
 use FakeAccess;
@@ -108,6 +109,9 @@ class APITest extends \DatabaseTestCase
 
             $t->doTrackGoal(2);
         }
+
+        $GLOBALS['PIWIK_TRACKER_MODE'] = false;
+        Db::createDatabaseObject();
     }
 
     private function buildCounter($visits, $actions, $visitors, $visitsConverted)
-- 
GitLab