From e81312ba480f77becccb29bfb0bc5a7d311aeea5 Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Tue, 13 Mar 2018 13:36:06 +0000 Subject: [PATCH] Issue #2687711 by chriscohen, anavarre: Drupal PHPUnit tests currently NEED the profiles directory to exist --- core/tests/bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tests/bootstrap.php b/core/tests/bootstrap.php index 7eb6ecb70c1..1905f158fda 100644 --- a/core/tests/bootstrap.php +++ b/core/tests/bootstrap.php @@ -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'); } /**