Skip to content

Commit d3e6a72

Browse files
committed
MQE-1884: MFTF - <after> failures override other failures
fixed static checks
1 parent 6db9c8d commit d3e6a72

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Magento/FunctionalTestingFramework/Extension/TestContextExtension.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function () use ($cest) {
7676
// check for errors in all test hooks and attach in allure
7777
if (!empty($testResultObject->errors())) {
7878
foreach ($testResultObject->errors() as $error) {
79-
if($error->failedTest()->getTestMethod() == $cest->getTestMethod()) {
79+
if ($error->failedTest()->getTestMethod() == $cest->getTestMethod()) {
8080
$this->attachExceptionToAllure($error->thrownException(), $cest->getTestMethod());
8181
}
8282
}
@@ -85,7 +85,7 @@ function () use ($cest) {
8585
// check for failures in all test hooks and attach in allure
8686
if (!empty($testResultObject->failures())) {
8787
foreach ($testResultObject->failures() as $failure) {
88-
if($failure->failedTest()->getTestMethod() == $cest->getTestMethod()) {
88+
if ($failure->failedTest()->getTestMethod() == $cest->getTestMethod()) {
8989
$this->attachExceptionToAllure($failure->thrownException(), $cest->getTestMethod());
9090
}
9191
}
@@ -114,7 +114,7 @@ public function extractContext($trace, $class)
114114
/**
115115
* Attach stack trace of exceptions thrown in each test hook to allure.
116116
* @param \Exception $exception
117-
* @param String $testMethod
117+
* @param string $testMethod
118118
* @return mixed
119119
*/
120120
public function attachExceptionToAllure($exception, $testMethod)

0 commit comments

Comments
 (0)