Skip to content

Commit f627085

Browse files
authored
Merge pull request #498 from magento/MQE-1870
MFTF 2.5.3 + MQE-1870
2 parents f96bbf5 + bdbe1ee commit f627085

File tree

6 files changed

+15
-4
lines changed

6 files changed

+15
-4
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
Magento Functional Testing Framework Changelog
22
================================================
3+
2.5.3
4+
-----
5+
6+
### Fixes
7+
* Fixed an issue where `createData` actions would cause an exception when used in `<suite>` hooks.
8+
39
2.5.2
410
-----
511

bin/mftf

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ try {
2929
try {
3030
$application = new Symfony\Component\Console\Application();
3131
$application->setName('Magento Functional Testing Framework CLI');
32-
$application->setVersion('2.5.2');
32+
$application->setVersion('2.5.3');
3333
/** @var \Magento\FunctionalTestingFramework\Console\CommandListInterface $commandList */
3434
$commandList = new \Magento\FunctionalTestingFramework\Console\CommandList;
3535
foreach ($commandList->getCommands() as $command) {

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "magento/magento2-functional-testing-framework",
33
"description": "Magento2 Functional Testing Framework",
44
"type": "library",
5-
"version": "2.5.2",
5+
"version": "2.5.3",
66
"license": "AGPL-3.0",
77
"keywords": ["magento", "automation", "functional", "testing"],
88
"config": {

composer.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Magento/FunctionalTestingFramework/Allure/AllureHelper.php

+5
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ public static function addAttachmentToLastStep($data, $caption)
3434
$rootStep = Allure::lifecycle()->getStepStorage()->getLast();
3535
$trueLastStep = array_last($rootStep->getSteps());
3636

37+
if ($trueLastStep == null) {
38+
// Nothing to attach to; do not fire off allure event
39+
return;
40+
}
41+
3742
$attachmentEvent = new AddAttachmentEvent($data, $caption);
3843
$attachmentEvent->process($trueLastStep);
3944
}

src/Magento/FunctionalTestingFramework/StaticCheck/TestDependencyCheck.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class TestDependencyCheck implements StaticCheckInterface
6666
* Array containing all errors found after running the execute() function.
6767
* @var array
6868
*/
69-
private $errors;
69+
private $errors = [];
7070

7171
/**
7272
* String representing the output summary found after running the execute() function.

0 commit comments

Comments
 (0)