use Shopware\Elasticsearch\Product\SearchFieldConfig;
/**
* @internal
*
* @covers \Shopware\Elasticsearch\Product\SearchFieldConfig
*/
class SearchFieldConfigTest extends TestCase
{ public function testInit(): void
{ $searchConfig =
new SearchFieldConfig('fooField', 1000, true
);
static::
assertSame('fooField',
$searchConfig->
getField());
static::
assertSame(1000,
$searchConfig->
getRanking());
static::
assertTrue($searchConfig->
tokenize());
static::
assertFalse($searchConfig->
isCustomField());
$customFieldSearchConfig =
new SearchFieldConfig('customFields.foo', 1000, true
);
static::
assertTrue($customFieldSearchConfig->
isCustomField());
}}