Skip to content

Commit 9dc4c95

Browse files
MAGETWO-69235: Do not di:compile tests/ folder #9660
2 parents 537685d + bfa4583 commit 9dc4c95

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

setup/src/Magento/Setup/Console/Command/DiCompileCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ private function getExcludedModulePaths(array $modulePaths)
227227

228228
$excludedModulePaths = [
229229
'#^(?:' . join('|', $basePathsRegExps) . ')/Test#',
230+
'#^(?:' . join('|', $basePathsRegExps) . ')/tests#',
230231
];
231232
return $excludedModulePaths;
232233
}
@@ -241,6 +242,7 @@ private function getExcludedLibraryPaths(array $libraryPaths)
241242
{
242243
$excludedLibraryPaths = [
243244
'#^(?:' . join('|', $libraryPaths) . ')/([\\w]+/)?Test#',
245+
'#^(?:' . join('|', $libraryPaths) . ')/([\\w]+/)?tests#',
244246
];
245247
return $excludedLibraryPaths;
246248
}

0 commit comments

Comments
 (0)