Commit 2e9db3e6 authored by webchick's avatar webchick

Issue #2333747 by jhedstrom, tim.plunkett: Fixed run-tests.sh ignores phpunit...

Issue #2333747 by jhedstrom, tim.plunkett: Fixed run-tests.sh ignores phpunit tests when using the --module flag.
parent 1efaefb1
......@@ -207,7 +207,9 @@ public function findAllClassFiles($extension = NULL) {
$classmap = array();
$namespaces = $this->registerTestNamespaces();
if (isset($extension)) {
$namespaces = array_intersect_key($namespaces, array_flip(preg_grep('/' . preg_quote("Drupal\\$extension\\", '/') . '/', array_keys($namespaces))));
// Include tests in the \Drupal\Tests\{$extension} namespace.
$pattern = "/Drupal\\\(Tests\\\)?$extension\\\/";
$namespaces = array_intersect_key($namespaces, array_flip(preg_grep($pattern, array_keys($namespaces))));
}
foreach ($namespaces as $namespace => $paths) {
foreach ($paths as $path) {
......
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