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:
Diffstat (limited to 'plugins/Monolog/tests/System/TrackerLoggingTest.php')
-rw-r--r--plugins/Monolog/tests/System/TrackerLoggingTest.php15
1 files changed, 7 insertions, 8 deletions
diff --git a/plugins/Monolog/tests/System/TrackerLoggingTest.php b/plugins/Monolog/tests/System/TrackerLoggingTest.php
index a7b2fe2025..44a7755e9f 100644
--- a/plugins/Monolog/tests/System/TrackerLoggingTest.php
+++ b/plugins/Monolog/tests/System/TrackerLoggingTest.php
@@ -15,6 +15,7 @@ use Piwik\Tests\Framework\Fixture;
use Piwik\Tests\Framework\TestCase\SystemTestCase;
use Piwik\Tests\Framework\TestingEnvironmentVariables;
use PiwikTracker;
+use Psr\Container\ContainerInterface;
/**
* @group Monolog
@@ -75,11 +76,10 @@ class TrackerLoggingTest extends SystemTestCase
{
$response = $t->doTrackPageView('incredible title!');
- $this->assertStringStartsWith("DEBUG: Debug enabled - Input parameters:
-DEBUG: array (
-DEBUG: 'idsite' => '1',
-DEBUG: 'rec' => '1',
-DEBUG: 'apiv' => '1',", $response);
+ $this->assertStringStartsWith("DEBUG: Debug enabled - Input parameters: array (
+ 'idsite' => '1',
+ 'rec' => '1',
+ 'apiv' => '1',", $response);
}
private function setTrackerConfig($trackerConfig)
@@ -96,11 +96,10 @@ DEBUG: 'apiv' => '1',", $response);
'Psr\Log\LoggerInterface' => \DI\get('Monolog\Logger'),
Config::class => \DI\decorate(function (Config $config) {
$config->tests['enable_logging'] = 1;
+ $config->log['log_writers'] = ['screen'];
return $config;
}),
- 'log.handlers' => [
- \DI\get(EchoHandler::class),
- ],
+ 'Tests.log.allowAllHandlers' => true,
);
}