/**
* @dataProvider cases
*
* @param list<string> $tokens
* @param list<string> $excludedTerms
* @param list<string> $expected
*/
public function testExcludedFilterFilter(array
$tokens, array
$excludedTerms, array
$expected): void
{ $this->
updateProductSearchConfig($excludedTerms);
$service =
new TokenFilter($this->connection
);
$keywords =
$service->
filter($tokens,
$this->context
);
sort($expected);
sort($keywords);
static::
assertEquals($expected,
$keywords);
} /**
* @return array<array{list<string>, list<string>, list<string>}>
*/
public static function cases(): array
{