diff --git a/tests/phpunit/includes/bootstrap.php b/tests/phpunit/includes/bootstrap.php index 68e8b60792..97003ae7ff 100644 --- a/tests/phpunit/includes/bootstrap.php +++ b/tests/phpunit/includes/bootstrap.php @@ -24,7 +24,7 @@ if ( defined( 'WP_TESTS_CONFIG_FILE_PATH' ) ) { } /* - * Globalize some WordPress variables, because PHPUnit loads this file inside a function + * Globalize some WordPress variables, because PHPUnit loads this file inside a function. * See: https://github.com/sebastianbergmann/phpunit/issues/325 */ global $wpdb, $current_site, $current_blog, $wp_rewrite, $shortcode_tags, $wp, $phpmailer, $wp_theme_directories; @@ -63,7 +63,10 @@ if ( ! defined( 'WP_TESTS_FORCE_KNOWN_BUGS' ) ) { define( 'WP_TESTS_FORCE_KNOWN_BUGS', false ); } -// Cron tries to make an HTTP request to the blog, which always fails, because tests are run in CLI mode only +/* + * Cron tries to make an HTTP request to the site, which always fails, + * because tests are run in CLI mode only. + */ define( 'DISABLE_WP_CRON', true ); define( 'WP_MEMORY_LIMIT', -1 );