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