WordPress.org

Make WordPress Core

Changeset 49951


Ignore:
Timestamp:
01/09/2021 05:56:04 AM (9 months ago)
Author:
SergeyBiryukov
Message:

Tests: Set up the plugin download in multisite plugin tests to come locally.

This brings consistency between single site and multisite in REST API plugin installation tests.

Previously, multisite tests were unnecessarily downloading the plugin from WordPress.org on each test run, causing external HTTP requests and leading to failures in case of a timeout.

Follow-up to [48242], [49491], [49913].

See #51669.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-plugins-controller.php

    r49913 r49951  
    444444
    445445        wp_set_current_user( self::$super_admin );
     446        $this->setup_plugin_download();
    446447
    447448        $request = new WP_REST_Request( 'POST', self::BASE );
     
    467468
    468469        wp_set_current_user( self::$super_admin );
     470        $this->setup_plugin_download();
    469471
    470472        $request = new WP_REST_Request( 'POST', self::BASE );
Note: See TracChangeset for help on using the changeset viewer.