Skip to content

Commit 063909c

Browse files
committed
MQE-736: Fail to run robo generate:suite Catalog
- update SuiteObjectExtractor to properly loop through files
1 parent b687037 commit 063909c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Magento/FunctionalTestingFramework/Suite/Util/SuiteObjectExtractor.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ private function extractTestObjectsFromSuiteRef($suiteReferences)
118118
case self::MODULE_TAG_NAME:
119119
$testObjectList = array_merge($testObjectList, $this->extractModuleAndFiles(
120120
$suiteRefData[self::NAME],
121-
$suiteRefData[self::MODULE_TAG_FILE_ATTRIBUTE ?? null]
121+
$suiteRefData[self::MODULE_TAG_FILE_ATTRIBUTE] ?? null
122122
));
123123
break;
124124
}
@@ -198,8 +198,11 @@ private function resolveModulePathTestNames($moduleName)
198198
);
199199

200200
foreach ($xmlFiles as $xmlFile) {
201-
$testObj = $this->resolveFilePathTestNames($xmlFile);
202-
$testObjects[$testObj->getName()] = $testObj;
201+
$testObjs = $this->resolveFilePathTestNames($xmlFile);
202+
203+
foreach ($testObjs as $testObj) {
204+
$testObjects[$testObj->getName()] = $testObj;
205+
}
203206
}
204207

205208
return $testObjects;

0 commit comments

Comments
 (0)