We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2547fb3 commit 14318acCopy full SHA for 14318ac
src/Magento/FunctionalTestingFramework/Util/TestGenerator.php
@@ -265,7 +265,14 @@ public function throwExceptionIfDuplicateArgumentsFound(string $fileContents)
265
}
266
267
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
274
275
276
277
278
0 commit comments