Skip to content

Commit cb49045

Browse files
committed
MQE-231: Allow data to extend other data
- Fixed comments referring to tests
1 parent be4f574 commit cb49045

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Magento/FunctionalTestingFramework/DataGenerator/Util/DataExtensionUtil.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct()
3030
*/
3131
public function extendEntity($entityObject)
3232
{
33-
// Check to see if the parent test exists
33+
// Check to see if the parent entity exists
3434
$parentEntity = DataObjectHandler::getInstance()->getObject($entityObject->getParentName());
3535
if ($parentEntity == null) {
3636
throw new XmlException(
@@ -43,7 +43,7 @@ public function extendEntity($entityObject)
4343
);
4444
}
4545

46-
// Check to see if the parent test is already an extended test
46+
// Check to see if the parent entity is already an extended entity
4747
if ($parentEntity->getParentName() !== null) {
4848
throw new XmlException(
4949
"Cannot extend an entity that already extends another entity. Entity: " .
@@ -83,8 +83,7 @@ public function extendEntity($entityObject)
8383
}
8484
}
8585

86-
// Create new Test object to return
87-
// Create new Test object to return
86+
// Create new entity object to return
8887
$extendedEntity = new EntityDataObject(
8988
$entityObject->getName(),
9089
$newType,

0 commit comments

Comments
 (0)