Skip to content

Commit f371c4d

Browse files
committed
MQE-506: Entity data cannot represent empty strings
- add support for unspecified data values in entities
1 parent 4f5ab04 commit f371c4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Magento/FunctionalTestingFramework/DataGenerator/Handlers/DataObjectHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ private function parseDataEntities()
174174
if (array_key_exists(self::DATA_VALUES, $entity)) {
175175
foreach ($entity[self::DATA_VALUES] as $dataElement) {
176176
$dataElementKey = strtolower($dataElement[self::DATA_ELEMENT_KEY]);
177-
$dataElementValue = $dataElement[self::DATA_ELEMENT_VALUE];
177+
$dataElementValue = $dataElement[self::DATA_ELEMENT_VALUE] ?? "";
178178
if (array_key_exists(self::DATA_ELEMENT_UNIQUENESS_ATTR, $dataElement)) {
179179
$uniquenessValues[$dataElementKey] = $dataElement[self::DATA_ELEMENT_UNIQUENESS_ATTR];
180180
}

0 commit comments

Comments
 (0)