Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
409b3933
Verified
Commit
409b3933
authored
Jan 25, 2018
by
larowlan
Browse files
Issue
#2874904
by Mixologic, alexpott: Fix YamlTest to not scan core/node_modules
parent
41116a57
Changes
1
Show whitespace changes
Inline
Side-by-side
core/tests/Drupal/Tests/Component/Serialization/YamlTest.php
View file @
409b3933
...
...
@@ -127,8 +127,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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment