Skip to content

Commit 91e5267

Browse files
authored
Update TestGenerator.php
1 parent 2b25fd2 commit 91e5267

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Magento/FunctionalTestingFramework/Util/TestGenerator.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,11 +255,16 @@ public function createAllTestFiles($testManifest = null, $testsToIgnore = null)
255255
* @return void
256256
* @throws TestFrameworkException
257257
*/
258-
public function throwExceptionIfDuplicateArgumentsFound(string $fileContents, $testObject): void
258+
public function throwExceptionIfDuplicateArgumentsFound($testObject): void
259259
{
260260
if (!($testObject instanceof TestObject)) {
261261
return;
262262
}
263+
$fileName = $testObject->getFilename();
264+
if (!empty($fileName) && file_exists($fileName)) {
265+
return;
266+
}
267+
263268
$parsedSteps = $testObject->getUnresolvedSteps();
264269
foreach ($parsedSteps as $parsedStep) {
265270
if ($parsedStep->getType() !== 'actionGroup' && $parsedStep->getType() !== 'helper') {

0 commit comments

Comments
 (0)