Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function testMinAggregation(): void |
||
21 | { |
||
22 | $agg = new Min('min_price'); |
||
23 | $agg->setField('price'); |
||
24 | |||
25 | $query = new Query(); |
||
26 | $query->addAggregation($agg); |
||
27 | $results = $this->_getIndexForTest()->search($query)->getAggregation('min_price'); |
||
28 | |||
29 | $this->assertEquals(self::MIN_PRICE, $results['value']); |
||
30 | } |
||
31 | |||
65 |