Make WordPress Core

Ticket #51670: 51670.diff

File 51670.diff, 762 bytes (added by desrosj, 4 years ago)
  • tests/phpunit/includes/bootstrap.php

    diff --git a/tests/phpunit/includes/bootstrap.php b/tests/phpunit/includes/bootstrap.php
    index 65c1c370c4..876c81941e 100644
    a b  
    144144tests_add_filter( 'wp_die_handler', '_wp_die_handler_filter' );
    145145// Use the Spy REST Server instead of default.
    146146tests_add_filter( 'wp_rest_server_class', '_wp_rest_server_class_filter' );
     147// Prevent updating translations asynchronously.
     148tests_add_filter( 'async_update_translation', '__return_false' );
     149// Disable background updates.
     150tests_add_filter( 'automatic_updater_disabled', '__return_true' );
    147151
    148152// Preset WordPress options defined in bootstrap file.
    149153// Used to activate themes, plugins, as well as other settings.