diff --git a/core/tests/Drupal/Tests/Component/Serialization/YamlTest.php b/core/tests/Drupal/Tests/Component/Serialization/YamlTest.php index becd7c0..5fdbc72 100644 --- a/core/tests/Drupal/Tests/Component/Serialization/YamlTest.php +++ b/core/tests/Drupal/Tests/Component/Serialization/YamlTest.php @@ -101,8 +101,8 @@ public function providerYamlFilesInCore() { $dirs = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator(__DIR__ . '/../../../../../', \RecursiveDirectoryIterator::FOLLOW_SYMLINKS)); foreach ($dirs as $dir) { $pathname = $dir->getPathname(); - // Exclude vendor. - if ($dir->getExtension() == 'yml' && strpos($pathname, '/../../../../../vendor') === FALSE) { + // Exclude core/node_modules. + if ($dir->getExtension() == 'yml' && strpos($pathname, '/../../../../../node_modules') === FALSE) { if (strpos($dir->getRealPath(), 'invalid_file') !== FALSE) { // There are some intentionally invalid files provided for testing // library API behaviours, ignore them.