diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-03-26 00:24:51 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-03-26 00:24:51 +0400 |
commit | 4c810a92e683ce1505e9fe55188ef769bde8871d (patch) | |
tree | b58e82312f8d920e61cc9e9e97d9303e5a747723 | |
parent | 08a0e53818168fcee38d0c3d2264831cab2873b3 (diff) |
fix core test
-rw-r--r-- | piwik.php | 2 | ||||
-rw-r--r-- | tests/PHPUnit/Core/ReleaseCheckListTest.php | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -85,7 +85,7 @@ if (!defined('PIWIK_ENABLE_TRACKING') || PIWIK_ENABLE_TRACKING) { \Piwik\FrontController::createConfigObject(); -$GLOBALS['PIWIK_TRACKER_DEBUG'] = \Piwik\Config::getInstance()->Tracker['debug']; +$GLOBALS['PIWIK_TRACKER_DEBUG'] = (bool) \Piwik\Config::getInstance()->Tracker['debug']; if ($GLOBALS['PIWIK_TRACKER_DEBUG'] === true) { require_once PIWIK_INCLUDE_PATH . '/core/Loader.php'; diff --git a/tests/PHPUnit/Core/ReleaseCheckListTest.php b/tests/PHPUnit/Core/ReleaseCheckListTest.php index 16449bb4cd..139d528819 100644 --- a/tests/PHPUnit/Core/ReleaseCheckListTest.php +++ b/tests/PHPUnit/Core/ReleaseCheckListTest.php @@ -159,10 +159,10 @@ class ReleaseCheckListTest extends PHPUnit_Framework_TestCase $_GET = $oldGet; + $this->assertEquals(0, \Piwik\Config::getInstance()->Tracker['debug']); $this->assertTrue($GLOBALS['PIWIK_TRACKER_DEBUG'] === false); } - /** * This tests that all PHP files start with <?php * This would help detect errors such as a php file starting with spaces |