From 56c1d4dbcf4ff44f1e54799d4de662513693c389 Mon Sep 17 00:00:00 2001 From: diosmosis <benaka@piwik.pro> Date: Thu, 21 May 2015 16:25:25 -0700 Subject: [PATCH] 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. --- tests/PHPUnit/System/TrackerTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); -- GitLab