Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
39 | public function testEmptyIndicesConfiguration() |
||
40 | { |
||
41 | $this |
||
42 | ->given($this->newTestedInstance) |
||
43 | ->and($config = [ |
||
44 | [ |
||
45 | 'indices' => [ |
||
46 | 'my_index' => [ |
||
47 | ], |
||
48 | 'my_index_2' => [ |
||
49 | ], |
||
50 | ] |
||
51 | ] |
||
52 | ]) |
||
53 | ->if($processed = $this->process($config)) |
||
54 | ->then |
||
55 | ->array($processed['indices']) |
||
56 | ->isNotEmpty() |
||
57 | ->hasKey('my_index') |
||
58 | ->hasKey('my_index_2') |
||
59 | ; |
||
60 | } |
||
61 | |||
98 |