Skip to content

Commit 89be134

Browse files
Manjusha.SManjusha.S
authored andcommitted
Fixed static check error
1 parent c5c4938 commit 89be134

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Magento/FunctionalTestingFramework/Module/MagentoWebDriver.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -912,8 +912,10 @@ public function _failed(TestInterface $test, $fail)
912912
if ($this->current_test === null) {
913913
throw new \RuntimeException("Suite condition failure: \n" . $fail->getMessage());
914914
}
915-
YandexAllure::lifecycle()->fire(new AddAttachmentEvent($this->pngReport, $test->getMetadata()->getName() . '.png', 'image/png'));
916-
YandexAllure::lifecycle()->fire(new AddAttachmentEvent($this->htmlReport, $test->getMetadata()->getName() . '.html', 'text/html'));
915+
YandexAllure::lifecycle()
916+
->fire(new AddAttachmentEvent($this->pngReport, $test->getMetadata()->getName() . '.png', 'image/png'));
917+
YandexAllure::lifecycle()
918+
->fire(new AddAttachmentEvent($this->htmlReport, $test->getMetadata()->getName() . '.html', 'text/html'));
917919
$this->debug("Failure due to : {$fail->getMessage()}");
918920
$this->debug("Screenshot saved to {$this->pngReport}");
919921
$this->debug("Html saved to {$this->htmlReport}");

0 commit comments

Comments
 (0)