$action =
$actions->
getElementsByTagName('flow-action'
)->
item(0
);
$this->config =
$action->
getElementsByTagName('config'
)->
item(0
);
} public function testFromXml(): void
{ static::
assertNotNull($this->config
);
/** @var \DOMElement $inputField */
$inputField =
$this->config->
getElementsByTagName('input-field'
)->
item(0
);
$expectedInputField =
new InputField([ 'name' => 'textField',
'label' =>
[ 'en-GB' => 'To',
'de-DE' => 'To DE',
],
'required' => true,
'defaultValue' => 'Shopware 6',
'placeHolder' =>
[ 'en-GB' => 'Enter to...',
'de-DE' => 'Enter to DE...',
],