Skip to content

Commit dfdcc72

Browse files
committed
Fix tests
1 parent 7d3f9c3 commit dfdcc72

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/DependencyInjection/Compiler/LoggerChannelPassTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ public function testProcess()
4949
$this->assertEquals($handler, (string) $arguments[0]);
5050
}
5151
}
52+
53+
$this->assertNotNull($container->getDefinition('monolog.logger.manualchan'));
5254
}
5355

5456
public function testProcessSetters()
@@ -82,6 +84,7 @@ protected function getContainer()
8284
$container->setDefinition($name, $service);
8385
}
8486

87+
$container->setParameter('monolog.additional_channels', array('manualchan'));
8588
$container->setParameter('monolog.handlers_to_channels', array(
8689
'monolog.handler.a' => array(
8790
'type' => 'inclusive',
@@ -117,6 +120,7 @@ protected function getContainerWithSetter()
117120
$service->addMethodCall('setLogger', array(new Reference('logger')));
118121
$container->setDefinition('foo', $service);
119122

123+
$container->setParameter('monolog.additional_channels', array('manualchan'));
120124
$container->setParameter('monolog.handlers_to_channels', array());
121125

122126
$container->getCompilerPassConfig()->setOptimizationPasses(array());

0 commit comments

Comments
 (0)