Skip to content

Commit 539aadb

Browse files
authored
MQE-418: [Generator] Quote issue in generator for parameterArray (#16)
* MQE-418: [Generator] Quote issue in generator for parameterArray - Removed all processing of parameterArray, as current implementation was causing the errors. - Simple setting fixes all known usecases for the parameterArray attribute. - Merged and Reverted erroneous merge.
1 parent db0a41e commit 539aadb

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/Magento/FunctionalTestingFramework/Util/TestGenerator.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -367,15 +367,7 @@ private function generateStepsPhp($stepsObject, $stepsData, $hookObject = false)
367367
}
368368

369369
if (isset($customActionAttributes['parameterArray'])) {
370-
$paramsWithUniqueness = [];
371-
$params = explode(
372-
',',
373-
$this->stripWrappedQuotes(rtrim(ltrim($customActionAttributes['parameterArray'], '['), ']'))
374-
);
375-
foreach ($params as $param) {
376-
$paramsWithUniqueness[] = $this->addUniquenessFunctionCall($param);
377-
}
378-
$parameterArray = '[' . implode(',', $paramsWithUniqueness) . ']';
370+
$parameterArray = $customActionAttributes['parameterArray'];
379371
}
380372

381373
if (isset($customActionAttributes['requiredAction'])) {

0 commit comments

Comments
 (0)