static::
assertEquals('test_media_selection_field',
$mediaSelectionField->
getName());
static::
assertEquals([ 'en-GB' => 'Test media-selection field',
],
$mediaSelectionField->
getLabel());
static::
assertEquals([],
$mediaSelectionField->
getHelpText());
static::
assertEquals(1,
$mediaSelectionField->
getPosition());
static::
assertFalse($mediaSelectionField->
getRequired());
} public function testToEntityArray(): void
{ $mediaSelectionField =
$this->
importCustomField(__DIR__ . '/_fixtures/media-selection-field.xml'
);
static::
assertEquals('test_media_selection_field',
$mediaSelectionField->
getName());
static::
assertEquals('text',
$mediaSelectionField->
getType());
static::
assertTrue($mediaSelectionField->
isActive());
static::
assertEquals([ 'label' =>
[ 'en-GB' => 'Test media-selection field',
],
'helpText' =>
[],
'componentName' => 'sw-media-field',
'customFieldType' => 'media',