diff options
author | diosmosis <benaka@piwik.pro> | 2015-05-22 02:25:25 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-05-22 02:25:25 +0300 |
commit | 56c1d4dbcf4ff44f1e54799d4de662513693c389 (patch) | |
tree | 2a0b78d5149683e50bfe97dca12e98201293aa7a /tests | |
parent | cc23564051f6a8424226b01bd9af6a79c5111375 (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')
-rw-r--r-- | tests/PHPUnit/System/TrackerTest.php | 4 |
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(); |