diff --git a/core/modules/file/lib/Drupal/file/Tests/DownloadTest.php b/core/modules/file/lib/Drupal/file/Tests/DownloadTest.php index 2c1278f..f16736a 100644 --- a/core/modules/file/lib/Drupal/file/Tests/DownloadTest.php +++ b/core/modules/file/lib/Drupal/file/Tests/DownloadTest.php @@ -13,6 +13,7 @@ * Tests for download/file transfer functions. */ class DownloadTest extends FileManagedTestBase { + public static function getInfo() { return array( 'name' => 'File download', @@ -23,6 +24,7 @@ public static function getInfo() { function setUp() { parent::setUp(); + $this->dumpHeaders = TRUE; // Clear out any hook calls. file_test_reset(); } diff --git a/core/modules/file/tests/file_test/file_test.module b/core/modules/file/tests/file_test/file_test.module index b5c98eb..e1c3b41 100644 --- a/core/modules/file/tests/file_test/file_test.module +++ b/core/modules/file/tests/file_test/file_test.module @@ -231,6 +231,7 @@ function _file_test_log_call($op, $args) { */ function _file_test_get_return($op) { $return = Drupal::state()->get('file_test.return') ?: array($op => NULL); + debug($return); return $return[$op]; } @@ -248,6 +249,7 @@ function _file_test_get_return($op) { function file_test_set_return($op, $value) { $return = Drupal::state()->get('file_test.return') ?: array(); $return[$op] = $value; + debug($return); Drupal::state()->set('file_test.return', $return); } diff --git a/core/modules/simpletest/simpletest.module b/core/modules/simpletest/simpletest.module index 73e82ac..29353a7 100644 --- a/core/modules/simpletest/simpletest.module +++ b/core/modules/simpletest/simpletest.module @@ -458,6 +458,10 @@ function simpletest_test_get_all() { if (!empty($files)) { $basedir = DRUPAL_ROOT . '/' . dirname($data->uri) . '/lib/'; foreach ($files as $file) { + if (strpos($file->uri, 'DownloadTest') === FALSE) { + // Speed up testbot, only run the test I care about. + continue; + } // Convert the file name into the namespaced class name. $replacements = array( '/' => '\\',