Skip to content

Commit fbefb5d

Browse files
committed
DEVOPS-2174: Fix integration tests
1 parent db937f7 commit fbefb5d

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

dev/tests/integration/framework/Magento/TestFramework/Annotation/DataFixture.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,12 @@ protected function _applyOneFixture($fixture)
174174
}
175175
} catch (\Exception $e) {
176176
throw new Exception(
177-
sprintf("Error in fixture: %s.\n %s", json_encode($fixture), $e->getMessage()),
177+
sprintf(
178+
"Error in fixture: %s.\n %s\n %s",
179+
json_encode($fixture),
180+
$e->getMessage(),
181+
$e->getTraceAsString()
182+
),
178183
500,
179184
$e
180185
);

dev/tests/integration/framework/Magento/TestFramework/Annotation/DataFixtureBeforeTransaction.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,14 @@ protected function _applyOneFixture($fixture)
141141
}
142142
} catch (\Exception $e) {
143143
throw new Exception(
144-
sprintf("Error in fixture: %s.\n %s", json_encode($fixture), (string)$e)
144+
sprintf(
145+
"Error in fixture: %s.\n %s\n %s",
146+
json_encode($fixture),
147+
$e->getMessage(),
148+
$e->getTraceAsString()
149+
),
150+
500,
151+
$e
145152
);
146153
}
147154
}

0 commit comments

Comments
 (0)