From d01ac2028a7877171c7f5a868b2ff2d7ccff14ac Mon Sep 17 00:00:00 2001 From: diosmosis Date: Sun, 5 Apr 2015 21:49:37 -0700 Subject: Make IniSettingsProvider a singleton in order to make sure IniFileChain is shared (again, regressed in a previous commit), and fixed many tests. Changed CacheTest from integration to unit. --- tests/resources/staticFileServer.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/resources') diff --git a/tests/resources/staticFileServer.php b/tests/resources/staticFileServer.php index bf26da55f4..696acebdcf 100644 --- a/tests/resources/staticFileServer.php +++ b/tests/resources/staticFileServer.php @@ -56,6 +56,9 @@ if ($staticFileServerMode === "") { SRV_MODE_REQUEST_VAR . " must be provided."); } +$environment = new \Piwik\Application\Environment(null); +$environment->init(); + switch ($staticFileServerMode) { // The static file server calls Piwik::serverStaticFile with a null file case NULL_FILE_SRV_MODE: -- cgit v1.2.3