Skip to content

Commit 51efbb3

Browse files
committed
ACPT-987: Evaluate State check testing from PR
- Fix Static Tests failures
1 parent a8de31b commit 51efbb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev/tests/static/testsuite/Magento/Test/Legacy/LegacyFixtureTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ public function testNew(): void
2626
$files = AddedFiles::getAddedFilesList(__DIR__ . '/..');
2727
$legacyFixtureFiles = [];
2828
//pattern to ignore skip and filter files
29-
$skip_pattern = '/app\/code\/.*\/Tests?\/GraphQl\/_files\/(.*[filter|skip]-list(_ee|_b2b|).php)/';
29+
$skip_pattern = '/(.*(filter|skip)-list(_ee|_b2b|).php)/';
3030
foreach ($files as $file) {
3131
if (pathinfo($file, PATHINFO_EXTENSION) === 'php'
32+
&& !preg_match($skip_pattern, $file)
3233
&& (
3334
preg_match('/(integration\/testsuite|api-functional\/testsuite).*\/(_files|Fixtures)/', $file)
3435
// Cover the case when tests are located in the module folder instead of dev/tests.
@@ -37,7 +38,6 @@ public function testNew(): void
3738
strpos($file, 'dev/tests/') === false
3839
&& preg_match('/app\/code\/.*\/Test.*\/(_files|Fixtures)/', $file)
3940
&& !preg_match('/app\/code\/.*\/Tests?\/Performance\/(_files|Fixtures)/', $file)
40-
&& !preg_match($skip_pattern, $file)
4141
)
4242
)
4343
) {

0 commit comments

Comments
 (0)