Issue #2687711 by chriscohen, anavarre: Drupal PHPUnit tests currently NEED the profiles directory to exist

merge-requests/1654/head
Alex Pott 2018-03-13 13:36:06 +00:00
parent b190c705bc
commit e81312ba48
No known key found for this signature in database
GPG Key ID: 31905460D4A69276
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ function drupal_phpunit_contrib_extension_directory_roots($root = NULL) {
$paths[] = is_dir("$path/profiles") ? realpath("$path/profiles") : NULL;
$paths[] = is_dir("$path/themes") ? realpath("$path/themes") : NULL;
}
return array_filter($paths);
return array_filter($paths, 'file_exists');
}
/**