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()
49
49
$ this ->assertEquals ($ handler , (string ) $ arguments [0 ]);
50
50
}
51
51
}
52
+
53
+ $ this ->assertNotNull ($ container ->getDefinition ('monolog.logger.manualchan ' ));
52
54
}
53
55
54
56
public function testProcessSetters ()
@@ -82,6 +84,7 @@ protected function getContainer()
82
84
$ container ->setDefinition ($ name , $ service );
83
85
}
84
86
87
+ $ container ->setParameter ('monolog.additional_channels ' , array ('manualchan ' ));
85
88
$ container ->setParameter ('monolog.handlers_to_channels ' , array (
86
89
'monolog.handler.a ' => array (
87
90
'type ' => 'inclusive ' ,
@@ -117,6 +120,7 @@ protected function getContainerWithSetter()
117
120
$ service ->addMethodCall ('setLogger ' , array (new Reference ('logger ' )));
118
121
$ container ->setDefinition ('foo ' , $ service );
119
122
123
+ $ container ->setParameter ('monolog.additional_channels ' , array ('manualchan ' ));
120
124
$ container ->setParameter ('monolog.handlers_to_channels ' , array ());
121
125
122
126
$ container ->getCompilerPassConfig ()->setOptimizationPasses (array ());
You can’t perform that action at this time.
0 commit comments