Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2015-05-26 22:34:48 +0300
committerdiosmosis <benaka@piwik.pro>2015-06-02 01:05:28 +0300
commitba2f86b2c7c20fa1f8994b5496cbed217ac0cc3f (patch)
tree60b7fa39d0751fb1659ad921f31814bfeae3ec16 /misc
parentbd7b1634f08a2452d8cd526a99b0d0248834658a (diff)
Use test.php DI config options if PIWIK_TEST_MODE is defined.
Diffstat (limited to 'misc')
-rw-r--r--misc/cron/updatetoken.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/misc/cron/updatetoken.php b/misc/cron/updatetoken.php
index 644dc3a72b..5664b89294 100644
--- a/misc/cron/updatetoken.php
+++ b/misc/cron/updatetoken.php
@@ -33,6 +33,8 @@ if (!Common::isPhpCliMode()) {
$testmode = in_array('--testmode', $_SERVER['argv']);
if ($testmode) {
+ define('PIWIK_TEST_MODE', true);
+
Tests\Framework\TestingEnvironment::addHooks();
}