diff --git a/core/Tracker/Cache.php b/core/Tracker/Cache.php index 01519a07e06811112a04948bb15b9ba3b60b3d0f..49526a6bb876b5f188d2aa9686938dc35ab886fc 100644 --- a/core/Tracker/Cache.php +++ b/core/Tracker/Cache.php @@ -18,9 +18,11 @@ class Piwik_Tracker_Cache { /** + * Public for tests only * @var Piwik_CacheFile */ - static $trackerCache = null; + static public $trackerCache = null; + static protected function getInstance() { if(is_null(self::$trackerCache)) { diff --git a/tests/LocalTracker.php b/tests/LocalTracker.php index f9f7fc6a2792789904a8553267d212528ee998dc..b4d56cfff55ae24e156417b6b408ec24d011ca6c 100755 --- a/tests/LocalTracker.php +++ b/tests/LocalTracker.php @@ -46,7 +46,7 @@ class Piwik_LocalTracker extends PiwikTracker } // unset cached values - Piwik_Common::$trackerCache = null; + Piwik_Tracker_Cache::$trackerCache = null; Piwik_Tracker::setForceIp(null); Piwik_Tracker::setForceDateTime(null); Piwik_Tracker::setForceVisitorId(null); @@ -60,7 +60,7 @@ class Piwik_LocalTracker extends PiwikTracker // modify config $GLOBALS['PIWIK_TRACKER_MODE'] = true; $GLOBALS['PIWIK_TRACKER_LOCAL_TRACKING'] = true; - Piwik_Common::$initTrackerMode = false; + Piwik_Tracker::$initTrackerMode = false; Piwik_Tracker::setTestEnvironment($testEnvironmentArgs, $method); // set language