Verified Commit 409b3933 authored by larowlan's avatar larowlan
Browse files

Issue #2874904 by Mixologic, alexpott: Fix YamlTest to not scan core/node_modules

parent 41116a57
...@@ -127,8 +127,8 @@ public function providerYamlFilesInCore() { ...@@ -127,8 +127,8 @@ public function providerYamlFilesInCore() {
$dirs = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator(__DIR__ . '/../../../../../', \RecursiveDirectoryIterator::FOLLOW_SYMLINKS)); $dirs = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator(__DIR__ . '/../../../../../', \RecursiveDirectoryIterator::FOLLOW_SYMLINKS));
foreach ($dirs as $dir) { foreach ($dirs as $dir) {
$pathname = $dir->getPathname(); $pathname = $dir->getPathname();
// Exclude vendor. // Exclude core/node_modules.
if ($dir->getExtension() == 'yml' && strpos($pathname, '/../../../../../vendor') === FALSE) { if ($dir->getExtension() == 'yml' && strpos($pathname, '/../../../../../node_modules') === FALSE) {
if (strpos($dir->getRealPath(), 'invalid_file') !== FALSE) { if (strpos($dir->getRealPath(), 'invalid_file') !== FALSE) {
// There are some intentionally invalid files provided for testing // There are some intentionally invalid files provided for testing
// library API behaviours, ignore them. // library API behaviours, ignore them.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment