Skip to content

Commit fbb8005

Browse files
Fixed call to member function on null issue for comment
1 parent 42dd3fc commit fbb8005

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Magento/FunctionalTestingFramework/Extension/TestContextExtension.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,6 @@ public function stepName(\Codeception\Event\StepEvent $e)
383383
//Hard set to 200; we don't expose this config in MFTF
384384
$argumentsLength = 200;
385385
$stepKey = null;
386-
387386
if (!($e->getStep() instanceof Comment)) {
388387
$stepKey = $this->retrieveStepKeyForAllure($e->getStep(), $e->getTest()->getMetadata()->getFilename());
389388
$isActionGroup = (
@@ -401,15 +400,14 @@ public function stepName(\Codeception\Event\StepEvent $e)
401400
}
402401
// DO NOT alter action if actionGroup is starting, need the exact actionGroup name for good logging
403402
if (strpos($stepAction, ActionGroupObject::ACTION_GROUP_CONTEXT_START) === false
404-
&& !($e->getStep() instanceof Comment)
405403
) {
406404
$stepAction = $e->getStep()->getHumanizedActionWithoutArguments();
407405
}
408406
$stepArgs = $e->getStep()->getArgumentsAsString($argumentsLength);
409-
if (!trim($stepAction)) {
407+
/*if (!trim($stepAction)) {
410408
$stepAction = $e->getStep()->getMetaStep()->getHumanizedActionWithoutArguments();
411409
$stepArgs = $e->getStep()->getMetaStep()->getArgumentsAsString($argumentsLength);
412-
}
410+
}*/
413411
$stepName = '';
414412

415413
if (isset($stepName)) {

0 commit comments

Comments
 (0)