Skip to content

Commit bc1c77a

Browse files
committed
Additional Quote Fix
Quote fix did nto include necessary changes to entity definition.
1 parent e6108dc commit bc1c77a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Magento/AcceptanceTestFramework/Util/TestGenerator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -485,20 +485,20 @@ private function generateStepsPhp($stepsObject, $stepsData, $hookObject = false)
485485
$entityData = '[';
486486
foreach ($stepsData[$customActionAttributes['name']] as $dataKey => $dataValue) {
487487
$variableReplace = $this->resolveTestVariable($dataValue, true);
488-
$entityData .= sprintf("'%s' => '%s', ", $dataKey, $variableReplace);
488+
$entityData .= sprintf("\"%s\" => \"%s\", ", $dataKey, $variableReplace);
489489
}
490490
$entityData .= ']';
491491
if ($hookObject) {
492492
$testSteps .= sprintf(
493-
"\t\t\$this->%s = new EntityDataObject('%s','%s',%s,null);\n",
493+
"\t\t\$this->%s = new EntityDataObject(\"%s\",\"%s\",%s,null);\n",
494494
$customActionAttributes['name'],
495495
$customActionAttributes['name'],
496496
$customActionAttributes['type'],
497497
$entityData
498498
);
499499
} else {
500500
$testSteps .= sprintf(
501-
"\t\t$%s = new EntityDataObject('%s','%s',%s,null);\n",
501+
"\t\t$%s = new EntityDataObject(\"%s\",\"%s\",%s,null);\n",
502502
$customActionAttributes['name'],
503503
$customActionAttributes['name'],
504504
$customActionAttributes['type'],

0 commit comments

Comments
 (0)