Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | public function testInstantiate() |
||
10 | { |
||
11 | $name = 'index_template1'; |
||
12 | $config = array( |
||
13 | 'elasticSearchName' => 'index_template_elastic_name1', |
||
14 | 'settings' => array(1), |
||
15 | 'template' => 't*', |
||
16 | ); |
||
17 | $indexTemplate = new IndexTemplateConfig($name, array(), $config); |
||
18 | $this->assertEquals($name, $indexTemplate->getName()); |
||
19 | $this->assertEquals( |
||
20 | $config, |
||
21 | array( |
||
22 | 'elasticSearchName' => $indexTemplate->getElasticSearchName(), |
||
23 | 'settings' => $indexTemplate->getSettings(), |
||
24 | 'template' => $indexTemplate->getTemplate(), |
||
25 | ) |
||
26 | ); |
||
27 | } |
||
28 | |||
39 |