class CustomEventsTest extends TestCase
{ public function testFromXml(): void
{ $doc = XmlUtils::
loadFile( __DIR__ . '/../../../_fixtures/Resources/flow.xml',
__DIR__ . '/../../../../../../../../src/Core/Framework/App/Flow/Schema/flow-1.0.xsd'
);
/** @var \DOMElement $events */
$events =
$doc->
getElementsByTagName('flow-events'
)->
item(0
);
$result = CustomEvents::
fromXml($events)->
toArray('en-GB'
);
static::
assertArrayHasKey('customEvent',
$result);
}}