Skip to content

Commit ca55052

Browse files
ACPT-1688: Fix Static Tests failures on Application-Server branch 3
1 parent e901757 commit ca55052

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

dev/tests/integration/testsuite/Magento/Framework/ObjectManager/ResetAfterRequestTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ public function resetAfterRequestClassDataProvider()
123123
* @magentoDbIsolation disabled
124124
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
125125
* @SuppressWarnings(PHPMD.NPathComplexity)
126+
* @SuppressWarnings(PHPCS.Magento2.Files.LineLength.MaxExceeded)
126127
*/
127128
public function testResetAfterRequestClasses(string $className)
128129
{

lib/internal/Magento/Framework/TestFramework/ApplicationStateComparator/SkipListAndFilterList.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class SkipListAndFilterList
2727
*/
2828
private ?array $filterList = null;
2929

30-
private readonly $fixturePath =
31-
'/dev/tests/integration/framework/Magento/TestFramework/ApplicationStateComparator/_files';
30+
private const FIXTURE_PATH =
31+
"/dev/tests/integration/framework/Magento/TestFramework/ApplicationStateComparator/_files";
3232

3333
/**
3434
* Filters properties by the list of property filters
@@ -53,7 +53,7 @@ public function getSkipList(string $operationName, string $compareType): array
5353
{
5454
if ($this->skipList === null) {
5555
$skipListList = [];
56-
foreach (glob(BP . $fixturePath . '/state-skip-list*.php') as $skipListFile) {
56+
foreach (glob(BP . self::FIXTURE_PATH . '/state-skip-list*.php') as $skipListFile) {
5757
$skipListList[] = include($skipListFile);
5858
}
5959
$this->skipList = array_merge_recursive(...$skipListList);
@@ -85,7 +85,7 @@ public function getFilterList(): array
8585
{
8686
if ($this->filterList === null) {
8787
$filterListList = [];
88-
foreach (glob(BP . $fixturePath . '/state-filter-list*.php') as $filterListFile) {
88+
foreach (glob(BP . self::FIXTURE_PATH . '/state-filter-list*.php') as $filterListFile) {
8989
$filterListList[] = include($filterListFile);
9090
}
9191
$this->filterList = array_merge_recursive(...$filterListList);

0 commit comments

Comments
 (0)