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