File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Tests/DependencyInjection/Compiler Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff 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 ());
You can’t perform that action at this time.
0 commit comments