Skip to content

Commit 7ea11f2

Browse files
committed
MQE-1087: Test _after hook does not run if test fails with exception
- getSerializableTrace -> getTrace
1 parent c8132f7 commit 7ea11f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Magento/FunctionalTestingFramework/Extension/TestContextExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function () use ($cest) {
6161
));
6262
$errors = $testResultObject->errors();
6363
if (!empty($errors)) {
64-
$stack = $errors[0]->thrownException()->getSerializableTrace();
64+
$stack = $errors[0]->thrownException()->getTrace();
6565
$context = $this->extractContext($stack, $cest->getTestMethod());
6666
// Do not attempt to run _after if failure was in the _after block
6767
// Try to run _after but catch exceptions to prevent them from overwriting original failure.

0 commit comments

Comments
 (0)