Skip to content

Commit 56d8288

Browse files
committed
MQE-2126: Can't modify DataEntity data
1 parent d0afb1c commit 56d8288

File tree

1 file changed

+7
-0
lines changed
  • src/Magento/FunctionalTestingFramework/DataGenerator/Config

1 file changed

+7
-0
lines changed

src/Magento/FunctionalTestingFramework/DataGenerator/Config/Dom.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ public function initDom($xml, $filename = null)
8181
}
8282
}
8383

84+
$itemNodes = $dom->getElementsByTagName('item');
85+
foreach ($itemNodes as $itemKey => $itemNode) {
86+
if ($itemNode->hasAttribute("name") === false) {
87+
$itemNode->setAttribute("name", (string)$itemKey);
88+
}
89+
}
90+
8491
return $dom;
8592
}
8693
}

0 commit comments

Comments
 (0)