Skip to content

Commit 4a710d6

Browse files
committed
MQE-1964: MFTF Helper - Implementation
1 parent debda26 commit 4a710d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Magento/FunctionalTestingFramework/Util/TestGenerator.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,12 +817,13 @@ public function generateStepsPhp($actionObjects, $generationScope = TestGenerato
817817
$customActionAttributes['class'],
818818
$customActionAttributes['method']
819819
);
820+
$typesToQuote = ['string', 'float'];
820821
foreach ($parameters as $parameter) {
821822
if (isset($customActionAttributes[$parameter['variableName']])) {
822823
$value = $customActionAttributes[$parameter['variableName']];
823824
$arguments[] = $this->addUniquenessFunctionCall(
824825
$value,
825-
$parameter['type'] === 'string' || $parameter['type'] === null
826+
in_array($parameter['type'], $typesToQuote) || $parameter['type'] === null
826827
);
827828
} elseif (!$parameter['isOptional']) {
828829
throw new TestFrameworkException(

0 commit comments

Comments
 (0)