From 92d70ed6965bd45f9258406beee8968c443a8af0 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 20 Sep 2019 21:58:42 +0000 Subject: [PATCH] Tests: Replace "blog" reference in a comment about `DISABLE_WP_CRON` usage with "site". Props davidbaumwald. Fixes #48089. git-svn-id: https://develop.svn.wordpress.org/trunk@46213 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/includes/bootstrap.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 );