From f717424287f8e96f57c47b7beb0d23e27eae2ae4 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 12 Nov 2020 17:13:56 +0000 Subject: [PATCH] Build/Tests Tools: Restore [49491], accidentally reverted in [49566]. See #39210. git-svn-id: https://develop.svn.wordpress.org/trunk@49570 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/includes/bootstrap.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/phpunit/includes/bootstrap.php b/tests/phpunit/includes/bootstrap.php index dd90c0486d..8cfb86afbc 100644 --- a/tests/phpunit/includes/bootstrap.php +++ b/tests/phpunit/includes/bootstrap.php @@ -166,6 +166,10 @@ $GLOBALS['_wp_die_disabled'] = false; tests_add_filter( 'wp_die_handler', '_wp_die_handler_filter' ); // Use the Spy REST Server instead of default. tests_add_filter( 'wp_rest_server_class', '_wp_rest_server_class_filter' ); +// Prevent updating translations asynchronously. +tests_add_filter( 'async_update_translation', '__return_false' ); +// Disable background updates. +tests_add_filter( 'automatic_updater_disabled', '__return_true' ); // Preset WordPress options defined in bootstrap file. // Used to activate themes, plugins, as well as other settings.