| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function testMinAggregationWithMissing(): void |
||
| 36 | { |
||
| 37 | $agg = new Min('min_price'); |
||
| 38 | $agg->setField('price'); |
||
| 39 | $agg->setMissing(-42); |
||
| 40 | |||
| 41 | $query = new Query(); |
||
| 42 | $query->addAggregation($agg); |
||
| 43 | $results = $this->_getIndexForTest()->search($query)->getAggregation('min_price'); |
||
| 44 | |||
| 45 | $this->assertEquals(-42, $results['value']); |
||
| 46 | } |
||
| 47 | |||
| 65 |