| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class FulltextSearchExtensionTest extends SapphireTest |
||
| 18 | { |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var BaseIndex |
||
| 22 | */ |
||
| 23 | protected $index; |
||
| 24 | |||
| 25 | public function testSearch() |
||
| 26 | { |
||
| 27 | $query = new BaseQuery(); |
||
| 28 | $query->addTerm('Test'); |
||
| 29 | |||
| 30 | $result = $this->index->search($query, 0, 10, [], true); |
||
| 31 | |||
| 32 | $this->assertInstanceOf(ArrayData::class, $result); |
||
| 33 | } |
||
| 34 | |||
| 35 | |||
| 36 | protected function setUp() |
||
| 45 | } |
||
| 46 | } |