File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Tests/DependencyInjection Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,31 @@ public function testWithSwiftMailerHandler()
217217 $ this ->assertEquals ('mailer ' , $ config ['handlers ' ]['swift ' ]['mailer ' ]);
218218 }
219219
220+ public function testWithElasticsearchHandler () {
221+ $ configs = array (
222+ array (
223+ 'handlers ' => array (
224+ 'elasticsearch ' => array (
225+ 'type ' => 'elasticsearch ' ,
226+ 'elasticsearch ' => array (
227+ 'id ' => 'elastica.client '
228+ ),
229+ 'index ' => 'my-index ' ,
230+ 'document_type ' => 'my-record ' ,
231+ 'ignore_error ' => true
232+ )
233+ )
234+ )
235+ );
236+
237+ $ config = $ this ->process ($ configs );
238+
239+ $ this ->assertEquals (true , $ config ['handlers ' ]['elasticsearch ' ]['ignore_error ' ]);
240+ $ this ->assertEquals ('my-record ' , $ config ['handlers ' ]['elasticsearch ' ]['document_type ' ]);
241+ $ this ->assertEquals ('my-index ' , $ config ['handlers ' ]['elasticsearch ' ]['index ' ]);
242+
243+ }
244+
220245 public function testWithConsoleHandler ()
221246 {
222247 $ configs = array (
You can’t perform that action at this time.
0 commit comments