class MultiEntitySelectFieldTest extends TestCase
{ use CustomFieldTypeTestBehaviour;
use IntegrationTestBehaviour;
public function testCreateFromXml(): void
{ $manifest = Manifest::
createFromXmlFile(__DIR__ . '/_fixtures/multi-entity-select-field.xml'
);
static::
assertNotNull($manifest->
getCustomFields());
static::
assertCount(1,
$manifest->
getCustomFields()->
getCustomFieldSets());
/** @var CustomFieldSet $customFieldSet */
$customFieldSet =
$manifest->
getCustomFields()->
getCustomFieldSets()[0
];
static::
assertCount(1,
$customFieldSet->
getFields());
$multiEntitySelectField =
$customFieldSet->
getFields()[0
];
static::
assertInstanceOf(SingleEntitySelectField::
class,
$multiEntitySelectField);
static::
assertEquals('test_multi_entity_select_field',
$multiEntitySelectField->
getName());
static::
assertEquals([ 'en-GB' => 'Test multi-entity-select field',
],