Skip to content

Commit 2b19f3e

Browse files
authored
Update TestGenerator.php
1 parent 228e02c commit 2b19f3e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Magento/FunctionalTestingFramework/Util/TestGenerator.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,9 @@ public function throwExceptionIfDuplicateArgumentsFound(string $fileContents)
265265
}
266266
}
267267
foreach ($argArr as $key => $arrVal) {
268+
if (!str_contains('=', $arrVal)) {
269+
continue;
270+
}
268271
if (!empty($argArr[$key + 1]) && $argArr[$key + 1] === $arrVal) {
269272
$err[] = 'Duplicate argument name '.$arrVal.' not allowed in helper or actionGroup';
270273
throw new TestFrameworkException(implode(PHP_EOL, $err));

0 commit comments

Comments
 (0)