Skip to content

Commit 9afa1ab

Browse files
authored
Update TestGenerator.php
1 parent 3541230 commit 9afa1ab

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Magento/FunctionalTestingFramework/Util/TestGenerator.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,7 @@ public function throwExceptionIfDuplicateArgumentsFound(string $fileContents)
264264
$argArr[$key] = explode(" ", trim($fileVal))[1];
265265
}
266266
}
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-
}
267+
273268
}
274269

275270
/**

0 commit comments

Comments
 (0)