protected function setUp(): void
{ parent::
setUp();
$this->
installSchema('search',
['search_index', 'search_dataset', 'search_total'
]);
$this->
installConfig(['search'
]);
} /**
* Tests search indexing.
*/
public function testMatching() { $this->
_setup();
$this->
_testQueries();
} /**
* Set up a small index of items to test against.
*/
public function _setup() { $this->
config('search.settings'
)->
set('index.minimum_word_size', 3
)->
save();
$search_index = \Drupal::
service('search.index'
);
assert($search_index instanceof SearchIndexInterface
);