File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
dev/tests/static/testsuite/Magento/Test/Legacy Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,15 @@ public function testNew(): void
27
27
$ legacyFixtureFiles = [];
28
28
foreach ($ files as $ file ) {
29
29
if (pathinfo ($ file , PATHINFO_EXTENSION ) === 'php '
30
- && preg_match ('/(Test|integration\/testsuite|api-functional\/testsuite).*\/(_files|Fixtures)/ ' , $ file )
30
+ && (
31
+ preg_match ('/(integration\/testsuite|api-functional\/testsuite).*\/(_files|Fixtures)/ ' , $ file )
32
+ // Cover the case when tests are located in the module folder instead of dev/tests.
33
+ // for instance inventory
34
+ || (
35
+ strpos ($ file , 'dev/tests/ ' ) === false
36
+ && preg_match ('/app\/code\/.*\/Test.*\/(_files|Fixtures)/ ' , $ file )
37
+ )
38
+ )
31
39
) {
32
40
$ legacyFixtureFiles [] = str_replace (BP . '/ ' , '' , $ file );
33
41
}
You can’t perform that action at this time.
0 commit comments