Skip to content

Commit fb358f4

Browse files
author
Malte Blättermann
committed
Supply small test to check if the new value is beeing proccessed correctly
1 parent 3f1bdae commit fb358f4

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Tests/DependencyInjection/ConfigurationTest.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)