static::
assertEquals( ['searchable', 'match', 'array', '10000000', '10.99999', 'nested'
],
array_values($words) );
} /**
* @dataProvider casesSearchBaseOnConfigField
*/
public function testInsertIntoSearchKeywordForEn(bool
$searchable, bool
$tokenize, int
$ranking): void
{ $this->
updateProductSearchConfigField($this->enSearchConfigId,
$searchable,
$tokenize,
$ranking);
$product =
$this->
getProduct();
$configFields =
$this->
getConfigFieldsByLanguageId($this->enSearchConfigId
);
$analyzer =
$this->
getContainer()->
get(ProductSearchKeywordAnalyzer::
class);
$analyzer =
$analyzer->
analyze($product,
$this->context,
$configFields);
$analyzerResult =
$analyzer->
getKeys();
sort($analyzerResult);
$expected =
[];
if ($searchable &&
$tokenize) { $expected =
[