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
This commit is contained in:
Sergey Biryukov 2019-09-20 21:58:42 +00:00
parent 8de962479d
commit 92d70ed696
1 changed files with 5 additions and 2 deletions

View File

@ -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 * See: https://github.com/sebastianbergmann/phpunit/issues/325
*/ */
global $wpdb, $current_site, $current_blog, $wp_rewrite, $shortcode_tags, $wp, $phpmailer, $wp_theme_directories; 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 ); 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( 'DISABLE_WP_CRON', true );
define( 'WP_MEMORY_LIMIT', -1 ); define( 'WP_MEMORY_LIMIT', -1 );