Conditions | 1 |
Paths | 1 |
Total Lines | 34 |
Code Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
63 | public function testIndexIsVariable() |
||
64 | { |
||
65 | $this |
||
66 | ->given($this->newTestedInstance) |
||
67 | ->and($config = [ |
||
68 | [ |
||
69 | 'indices' => [ |
||
70 | 'index_1' => [ |
||
71 | 'foo' => [ |
||
72 | 'bar', |
||
73 | ], |
||
74 | ], |
||
75 | 'index_2' => [ |
||
76 | 'fizz' => [ |
||
77 | ], |
||
78 | 'mapping' => [ |
||
79 | ], |
||
80 | ], |
||
81 | ] |
||
82 | ] |
||
83 | ]) |
||
84 | ->if($processed = $this->process($config)) |
||
85 | ->then |
||
86 | ->array($processed['indices']) |
||
87 | ->hasKey('index_1') |
||
88 | ->array($processed['indices']['index_1']) |
||
89 | ->isEqualTo([ |
||
90 | 'foo' => [ |
||
91 | 'bar', |
||
92 | ], |
||
93 | ] |
||
94 | ) |
||
95 | ; |
||
96 | } |
||
97 | } |
||
98 |