Skip to content

Commit fbd24f4

Browse files
authored
Update TestGenerator.php
1 parent f401b15 commit fbd24f4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Magento/FunctionalTestingFramework/Util/TestGenerator.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -262,13 +262,11 @@ public function throwExceptionIfDuplicateArgumentsFound(string $fileContents, st
262262
$actionGroupStart = false;
263263
foreach ($fileToArr as $fileVal) {
264264
$fileVal = trim($fileVal);
265-
if ((str_starts_with($fileVal, '<actionGroup') || str_starts_with($fileVal, '<helper')) &&
266-
!str_ends_with($fileVal, '/>')
267-
) {
265+
if (str_starts_with($fileVal, '<actionGroup') && !str_ends_with($fileVal, '/>')) {
268266
$actionGroupStart = true;
269267
continue;
270268
}
271-
if ($fileVal === '</actionGroup>' || $fileVal === '</helper>') {
269+
if ($fileVal === '</actionGroup>') {
272270
$argumentNameArray = [];
273271
foreach ($argumentArray as $argument) {
274272
$subtringStart = strpos($argument, 'name=');
@@ -277,7 +275,7 @@ public function throwExceptionIfDuplicateArgumentsFound(string $fileContents, st
277275
$argumentName = substr($argument, $subtringStart, $size);
278276
if (in_array($argumentName, $argumentNameArray)) {
279277
$err[] = sprintf(
280-
'Duplicate argument for actiongroup or helper with name: %s in test file: %s',
278+
'Duplicate argument for actiongroup with name: %s in test file: %s',
281279
$argumentName,
282280
$fileName
283281
);

0 commit comments

Comments
 (0)