Skip to content

Commit

Permalink
Simpletest should go on discovery tour in (module dir)/tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
donquixote committed Sep 21, 2013
1 parent 93733d6 commit 659c9fb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions core/modules/simpletest/simpletest.module
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,6 @@ function simpletest_test_get_all() {
$tests_dirs = array(
$extension_dir . '/lib/Drupal/' . $name . '/Tests',
$extension_dir . '/lib/Tests',
$extension_dir . '/tests/Drupal/' . $name . '/Tests',
$extension_dir . '/tests/lib',
);

$namespace = 'Drupal\\' . $name . '\Tests\\';
Expand Down Expand Up @@ -533,8 +531,6 @@ function simpletest_classloader_register() {
foreach ($types as $type => $info) {
$matches = drupal_system_listing('/^' . DRUPAL_PHP_FUNCTION_PATTERN . '\.' . $info['extension'] . '$/', $info['dir']);
foreach ($matches as $name => $file) {
// @todo Register PSR-4 namespace directories, once our classloader supports it.
// See https://drupal.org/node/2058867
drupal_classloader_register($name, dirname($file->uri));
$classloader->add('Drupal\\' . $name . '\\Tests', DRUPAL_ROOT . '/' . dirname($file->uri) . '/tests');
// While being there, prime drupal_get_filename().
Expand Down

0 comments on commit 659c9fb

Please sign in to comment.