Skip to content

Commit b91f3a3

Browse files
Manjusha.SManjusha.S
authored andcommitted
MQE-2021 : Added unit test
1 parent 2e1b1a2 commit b91f3a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Magento/FunctionalTestingFramework/Util/TestGenerator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1464,7 +1464,7 @@ public function generateStepsPhp($actionObjects, $generationScope = TestGenerato
14641464
$argRef = "\t\t\$";
14651465
$input = $this->resolveAllRuntimeReferences([$input])[0];
14661466
$input = (isset($actionObject->getCustomActionAttributes()['unique'])) ?
1467-
$this->getUniqueIdForInput( $actionObject->getCustomActionAttributes()['unique'], $input)
1467+
$this->getUniqueIdForInput($actionObject->getCustomActionAttributes()['unique'], $input)
14681468
: $input;
14691469
$argRef .= str_replace(ucfirst($fieldKey), "", $stepKey) .
14701470
"Fields['{$fieldKey}'] = ${input};";
@@ -1521,9 +1521,9 @@ public function generateStepsPhp($actionObjects, $generationScope = TestGenerato
15211521
* @param string $input
15221522
* @return string
15231523
*/
1524-
public function getUniqueIdForInput( $uniqueValue, $input)
1524+
public function getUniqueIdForInput( $uniqueValue, $input)
15251525
{
1526-
$input = ( $uniqueValue == 'prefix')
1526+
$input = ($uniqueValue == 'prefix')
15271527
? '"'.uniqid().str_replace('"', '', $input).'"'
15281528
: '"'.str_replace('"', '', $input).uniqid().'"';
15291529
return $input;

0 commit comments

Comments
 (0)