Skip to content

Commit 57331ea

Browse files
authored
Merge pull request #336 from magento-gl/MFTF_4.4.2_release
MFTF 4.4.2 Release
2 parents e4fc3fc + ca4b273 commit 57331ea

File tree

10 files changed

+46
-21
lines changed

10 files changed

+46
-21
lines changed

Diff for: CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Magento Functional Testing Framework Changelog
22
================================================
33

4+
4.4.2
5+
---------
6+
### Fixes
7+
* Fixed PHP 8.2 deprecation warnings.
8+
49
4.4.1
510
---------
611
* Same as previous release

Diff for: 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": "4.4.1",
5+
"version": "4.4.2",
66
"license": "AGPL-3.0",
77
"keywords": ["magento", "automation", "functional", "testing"],
88
"config": {

Diff for: composer.lock

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

Diff for: dev/tests/unit/Magento/FunctionalTestFramework/Util/UnusedEntityCheckTest.php

+12-12
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ public function testUnusedActiongroupFiles()
4242

4343
public function testUnusedActiongroupFilesReturnedWhenActionXmlFilesAreNotEmpty()
4444
{
45-
$this->scriptUtil = new ScriptUtil();
45+
$scriptUtil = new ScriptUtil();
4646
$unusedEntityCheck = new UnusedEntityCheck();
4747
$domDocument = new \DOMDocument();
48-
$modulePaths = $this->scriptUtil->getAllModulePaths();
49-
$actionGroupXmlFiles = $this->scriptUtil->getModuleXmlFilesByScope($modulePaths, "ActionGroup");
48+
$modulePaths = $scriptUtil->getAllModulePaths();
49+
$actionGroupXmlFiles = $scriptUtil->getModuleXmlFilesByScope($modulePaths, "ActionGroup");
5050
$actionGroupFiles = ['DeprecationCheckActionGroup' =>
5151
'/verification/DeprecationCheckModule/ActionGroup/DeprecationCheckActionGroup.xml',
5252
'ActionGroupWithMultiplePausesActionGroup'=>
@@ -82,9 +82,9 @@ public function testUnusedSectionFiles()
8282
public function testUnusedSectionFilesReturnedWhenSectionXmlFilesAreNotEmpty()
8383
{
8484
$unusedEntityCheck = new UnusedEntityCheck();
85-
$this->scriptUtil = new ScriptUtil();
86-
$modulePaths = $this->scriptUtil->getAllModulePaths();
87-
$sectionXmlFiles = $this->scriptUtil->getModuleXmlFilesByScope($modulePaths, "Section");
85+
$scriptUtil = new ScriptUtil();
86+
$modulePaths = $scriptUtil->getAllModulePaths();
87+
$sectionXmlFiles = $scriptUtil->getModuleXmlFilesByScope($modulePaths, "Section");
8888

8989
$domDocument = new \DOMDocument();
9090
$section = [
@@ -119,9 +119,9 @@ public function testUnusedPageFilesReturnedWhenPageXmlFilesPassedAreNotEmpty()
119119
{
120120
$unusedEntityCheck = new UnusedEntityCheck();
121121
$domDocument = new \DOMDocument();
122-
$this->scriptUtil = new ScriptUtil();
123-
$modulePaths = $this->scriptUtil->getAllModulePaths();
124-
$pageXmlFiles = $this->scriptUtil->getModuleXmlFilesByScope($modulePaths, "Page");
122+
$scriptUtil = new ScriptUtil();
123+
$modulePaths = $scriptUtil->getAllModulePaths();
124+
$pageXmlFiles = $scriptUtil->getModuleXmlFilesByScope($modulePaths, "Page");
125125
$page = [
126126
'DeprecationCheckPage' => '/verification/DeprecationCheckModule/Page/DeprecationCheckPage.xml',
127127
'DeprecatedPage' => '/verification/TestModule/Page/DeprecatedPage.xml',
@@ -164,9 +164,9 @@ public function testUnusedDataReturnedWhenCreateDataEntityAreNotEmpty()
164164
{
165165
$unusedEntityCheck = new UnusedEntityCheck();
166166
$domDocument = new \DOMDocument();
167-
$this->scriptUtil = new ScriptUtil();
168-
$modulePaths = $this->scriptUtil->getAllModulePaths();
169-
$dataXmlFiles = $this->scriptUtil->getModuleXmlFilesByScope($modulePaths, "Data");
167+
$scriptUtil = new ScriptUtil();
168+
$modulePaths = $scriptUtil->getAllModulePaths();
169+
$dataXmlFiles = $scriptUtil->getModuleXmlFilesByScope($modulePaths, "Data");
170170
$data = [
171171
"simpleData" =>
172172
[

Diff for: src/Magento/FunctionalTestingFramework/Allure/Adapter/MagentoAllureAdapter.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@
4242
class MagentoAllureAdapter extends AllureCodeception
4343
{
4444
const STEP_PASSED = "passed";
45+
46+
/**
47+
* @var array
48+
*/
49+
private $options = [];
50+
4551
/**
4652
* Test files cache.
4753
*
@@ -184,7 +190,6 @@ public function stepBefore(StepEvent $stepEvent)
184190
// Strip control characters so that report generation does not fail
185191
$stepName = preg_replace('/[[:cntrl:]]/', '', $stepName);
186192

187-
$this->emptyStep = false;
188193
$this->getLifecycle()->fire(new StepStartedEvent($stepName));
189194
}
190195

Diff for: src/Magento/FunctionalTestingFramework/Config/Reader.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ public function __construct(
4848
$this->fileName = $fileName;
4949
$this->idAttributes = array_replace($this->idAttributes, $idAttributes);
5050
$this->schemaFile = $schemaLocator->getSchema();
51-
$this->isValidated = $validationState->isValidated();
52-
$this->perFileSchema = $schemaLocator->getPerFileSchema() &&
53-
$this->isValidated ? $schemaLocator->getPerFileSchema() : null;
51+
$isValidated = $validationState->isValidated();
52+
$this->perFileSchema = $schemaLocator->getPerFileSchema() && $isValidated ?
53+
$schemaLocator->getPerFileSchema() : null;
5454
$this->domDocumentClass = $domDocumentClass;
5555
$this->defaultScope = $defaultScope;
5656
}

Diff for: src/Magento/FunctionalTestingFramework/ObjectManager/Config/Reader/Dom.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ public function __construct(
6565
*/
6666
protected function _createConfigMerger($mergerClass, $initialContents)
6767
{
68-
return new $mergerClass($initialContents, $this->_idAttributes, self::TYPE_ATTRIBUTE, $this->_perFileSchema);
68+
return new $mergerClass($initialContents, $this->idAttributes, self::TYPE_ATTRIBUTE, $this->perFileSchema);
6969
}
7070
}

Diff for: src/Magento/FunctionalTestingFramework/StaticCheck/CreatedDataFromOutsideActionGroupCheck.php

+5
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ class CreatedDataFromOutsideActionGroupCheck implements StaticCheckInterface
6060
*/
6161
private $scriptUtil;
6262

63+
/**
64+
* @var array
65+
*/
66+
private $actionGroupXmlFile = [];
67+
6368
/**
6469
* Checks test dependencies, determined by references in tests versus the dependencies listed in the Magento module
6570
*

Diff for: src/Magento/FunctionalTestingFramework/StaticCheck/UnusedEntityCheck.php

+11-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ class UnusedEntityCheck implements StaticCheckInterface
3737
*/
3838
private $scriptUtil;
3939

40+
/**
41+
* @var array
42+
*/
43+
private $errors = [];
44+
45+
/**
46+
* @var string
47+
*/
48+
private $output = '';
49+
4050
/**
4151
* Checks test dependencies, determined by references in tests versus the dependencies listed in the Magento module
4252
*
@@ -625,7 +635,7 @@ public function getErrors()
625635
/**
626636
* Return output
627637
*
628-
* @return array
638+
* @return string
629639
*/
630640
public function getOutput()
631641
{

Diff for: src/Magento/FunctionalTestingFramework/Test/Objects/TestObject.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ public function getAnnotationByName($name)
337337
*/
338338
public function getCustomData()
339339
{
340-
return $this->customData;
340+
return null;
341341
}
342342

343343
/**

0 commit comments

Comments
 (0)