Skip to content

Commit cb37563

Browse files
Ashish.Kumar18Ashish.Kumar18
authored andcommitted
ACQE-2580: changes
1 parent 7b4c95d commit cb37563

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Magento/FunctionalTestingFramework/Util/TestGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ public function assembleTestPhp($testObject)
273273
$err[] = 'Duplicate argument name '.$arrVal.' not allowed in helper or actionGroup';
274274
throw new TestFrameworkException(implode(PHP_EOL, $err));
275275
}
276-
if (!empty($argArr[$key - 1]) && $argArr[$key - 1] === $arrVal) {
276+
if (!empty($argArr[$key + 2]) && $argArr[$key + 2] === $arrVal) {
277277
$err[] = 'Duplicate argument name '.$arrVal.' not allowed in helper or actionGroup';
278278
throw new TestFrameworkException(implode(PHP_EOL, $err));
279279
}

0 commit comments

Comments
 (0)