Skip to content

Commit

Permalink
Merge pull request #580 from magento-performance/ACPT-1697
Browse files Browse the repository at this point in the history
ACPT-1697: Move state-*-list.php files back to dev from lib
  • Loading branch information
andimov authored Nov 28, 2023
2 parents 538a07f + 265ae89 commit b6791bb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ class SkipListAndFilterList
*/
private ?array $filterList = null;

private readonly $fixturePath =
'/dev/tests/integration/framework/Magento/TestFramework/ApplicationStateComparator/_files';

/**
* Filters properties by the list of property filters
*
Expand All @@ -50,7 +53,7 @@ public function getSkipList(string $operationName, string $compareType): array
{
if ($this->skipList === null) {
$skipListList = [];
foreach (glob(__DIR__ . '/_files/state-skip-list*.php') as $skipListFile) {
foreach (glob(BP . $fixturePath . '/state-skip-list*.php') as $skipListFile) {
$skipListList[] = include($skipListFile);
}
$this->skipList = array_merge_recursive(...$skipListList);
Expand Down Expand Up @@ -82,7 +85,7 @@ public function getFilterList(): array
{
if ($this->filterList === null) {
$filterListList = [];
foreach (glob(__DIR__ . '/_files/state-filter-list*.php') as $filterListFile) {
foreach (glob(BP . $fixturePath . '/state-filter-list*.php') as $filterListFile) {
$filterListList[] = include($filterListFile);
}
$this->filterList = array_merge_recursive(...$filterListList);
Expand Down

0 comments on commit b6791bb

Please sign in to comment.