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:
authorThomas Steur <thomas.steur@gmail.com>2015-08-19 15:15:11 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-08-19 15:15:11 +0300
commitbaec74598a8a57af403c35af40e7ea46570307d6 (patch)
treef4a675d82c594cfe2bdd04211703828186bc651b /tests/PHPUnit/System/TrackerTest.php
parent496bbbd15239c6cfa160679b2aa51cefa55b6fdb (diff)
fix a system test
Diffstat (limited to 'tests/PHPUnit/System/TrackerTest.php')
-rw-r--r--tests/PHPUnit/System/TrackerTest.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/PHPUnit/System/TrackerTest.php b/tests/PHPUnit/System/TrackerTest.php
index 3db1b05861..461b0a2385 100644
--- a/tests/PHPUnit/System/TrackerTest.php
+++ b/tests/PHPUnit/System/TrackerTest.php
@@ -179,7 +179,11 @@ class TrackerTest extends IntegrationTestCase
public function test_scheduledTasks_CanBeRunThroughTracker_WithOutputIncluded_IfDebugQueryParamUsed()
{
- $this->setScheduledTasksToRunInTracker();
+ $environment = $this->setScheduledTasksToRunInTracker();
+ $config = $environment->configOverride;
+ $config['log']['log_writers'] = array('screen');
+ $environment->configOverride = $config;
+ $environment->save();
$urlToTest = $this->getSimpleTrackingUrl() . '&debug=1';
@@ -296,6 +300,8 @@ class TrackerTest extends IntegrationTestCase
$testingEnvironment->addScheduledTask = true;
$testingEnvironment->configOverride = array('Tracker' => array('scheduled_tasks_min_interval' => 1, 'debug_on_demand' => 1));
$testingEnvironment->save();
+
+ return $testingEnvironment;
}
private function addFailingScheduledTaskToTracker($doFatalError)
@@ -381,4 +387,12 @@ class TrackerTest extends IntegrationTestCase
Option::clearCachedOption(self::TASKS_STARTED_OPTION_NAME);
$this->assertEquals(1, Option::get(self::TASKS_STARTED_OPTION_NAME));
}
+
+ public static function provideContainerConfigBeforeClass()
+ {
+ return array(
+ 'Psr\Log\LoggerInterface' => \DI\get('Monolog\Logger')
+ );
+ }
+
} \ No newline at end of file