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
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2015-05-22 02:25:25 +0300
committerdiosmosis <benaka@piwik.pro>2015-05-22 02:25:25 +0300
commit56c1d4dbcf4ff44f1e54799d4de662513693c389 (patch)
tree2a0b78d5149683e50bfe97dca12e98201293aa7a /tests/PHPUnit/System/TrackerTest.php
parentcc23564051f6a8424226b01bd9af6a79c5111375 (diff)
Fix TrackerTest provideContainerConfig() method. Now that it is called during test case setup, check the const is defined before defining it. Otherwise, there will be an error regarding redefining the constant.
Diffstat (limited to 'tests/PHPUnit/System/TrackerTest.php')
-rw-r--r--tests/PHPUnit/System/TrackerTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/PHPUnit/System/TrackerTest.php b/tests/PHPUnit/System/TrackerTest.php
index 5d38c74d51..24b500b33c 100644
--- a/tests/PHPUnit/System/TrackerTest.php
+++ b/tests/PHPUnit/System/TrackerTest.php
@@ -308,7 +308,9 @@ class TrackerTest extends IntegrationTestCase
public function provideContainerConfig()
{
- define('DEBUG_FORCE_SCHEDULED_TASKS', 1);
+ if (!defined('DEBUG_FORCE_SCHEDULED_TASKS')) {
+ define('DEBUG_FORCE_SCHEDULED_TASKS', 1);
+ }
$testingEnvironment = new \Piwik_TestingEnvironment();