| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | protected function _getIndexForTest(): Index |
||
| 49 | { |
||
| 50 | $index = $this->_createIndex(); |
||
| 51 | |||
| 52 | $index->addDocuments([ |
||
| 53 | new Document(1, ['price' => 5]), |
||
| 54 | new Document(2, ['price' => 8]), |
||
| 55 | new Document(3, ['price' => self::MIN_PRICE]), |
||
| 56 | new Document(4, ['price' => 3]), |
||
| 57 | new Document(5, []), |
||
| 58 | ]); |
||
| 59 | |||
| 60 | $index->refresh(); |
||
| 61 | |||
| 62 | return $index; |
||
| 63 | } |
||
| 64 | } |
||
| 65 |