From 52bed8ed6fd9240f476a7bf8c739b4d7eabfc9ff Mon Sep 17 00:00:00 2001 From: diosmosis Date: Sun, 31 May 2015 23:07:16 -0700 Subject: Create manipulator manually in proxy entrypoints instead of using TestingEnvironmentVariables::addHooks(). --- misc/cron/updatetoken.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'misc') diff --git a/misc/cron/updatetoken.php b/misc/cron/updatetoken.php index 007d41a600..21f28b8cdd 100644 --- a/misc/cron/updatetoken.php +++ b/misc/cron/updatetoken.php @@ -12,6 +12,8 @@ namespace Piwik; use Piwik\Application\Environment; +use Piwik\Tests\Framework\TestingEnvironmentManipulator; +use Piwik\Tests\Framework\TestingEnvironmentVariables; if (!defined('PIWIK_INCLUDE_PATH')) { define('PIWIK_INCLUDE_PATH', realpath(dirname(__FILE__) . "/../..")); @@ -35,7 +37,7 @@ $testmode = in_array('--testmode', $_SERVER['argv']); if ($testmode) { define('PIWIK_TEST_MODE', true); - Tests\Framework\TestingEnvironmentVariables::addHooks(); + Environment::addEnvironmentManipulator(new TestingEnvironmentManipulator(new TestingEnvironmentVariables())); } function getPiwikDomain() -- cgit v1.2.3