Skip to content

Commit f3a196a

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

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Magento/FunctionalTestingFramework/Util/TestGenerator.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,9 @@ public function createAllTestFiles($testManifest = null, $testsToIgnore = null)
257257
*/
258258
public function throwExceptionIfDuplicateArgumentsFound(string $fileContents, $testObject): void
259259
{
260+
if (!($testObject instanceof TestObject)) {
261+
return;
262+
}
260263
$parsedSteps = $testObject->getUnresolvedSteps();
261264
foreach ($parsedSteps as $parsedStep) {
262265
if ($parsedStep->getType() !== 'actionGroup' && $parsedStep->getType() !== 'helper') {

0 commit comments

Comments
 (0)