Skip to content

Commit f348e32

Browse files
authored
Update TestGenerator.php
1 parent 14318ac commit f348e32

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/Magento/FunctionalTestingFramework/Util/TestGenerator.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -265,14 +265,7 @@ public function throwExceptionIfDuplicateArgumentsFound(string $fileContents)
265265
}
266266
}
267267
foreach ($argArr as $key => $arrVal) {
268-
if (!empty($argArr[$key + 1]) && $argArr[$key + 1] === $arrVal) {
269-
$err[] = 'Duplicate argument name '.$arrVal.' not allowed in helper or actionGroup';
270-
throw new TestFrameworkException(implode(PHP_EOL, $err));
271-
}
272-
if (!empty($argArr[$key + 2]) && $argArr[$key + 2] === $arrVal) {
273-
$err[] = 'Duplicate argument name '.$arrVal.' not allowed in helper or actionGroup';
274-
throw new TestFrameworkException(implode(PHP_EOL, $err));
275-
}
268+
276269
}
277270
}
278271

0 commit comments

Comments
 (0)