Skip to content

Commit ad0ca00

Browse files
authored
Update TestGenerator.php
1 parent f3a196a commit ad0ca00

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
@@ -286,7 +286,7 @@ public function throwExceptionIfDuplicateArgumentsFound(string $fileContents, $t
286286
foreach ($arguments as $argumentName => $argumentValue) {
287287
$argumentCounter = 0;
288288
foreach ($argumentArray as $rawArgument) {
289-
if (str_contains($rawArgument, '<argument') && str_contains($rawArgument, $argumentName)) {
289+
if (str_contains($rawArgument, '<argument') && str_contains($rawArgument, 'name="'.$argumentName.'"')) {
290290
$argumentCounter++;
291291
}
292292
if ($argumentCounter > 1) {

0 commit comments

Comments
 (0)