Make WordPress Core


Ignore:
Timestamp:
02/21/2018 04:24:30 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Tests: Replace use of $this->server with rest_get_server() for better memory recycling.

Props danielbachhuber.
Fixes #41641.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/bootstrap.php

    r42343 r42724  
    8686// Allow tests to override wp_die
    8787tests_add_filter( 'wp_die_handler', '_wp_die_handler_filter' );
     88// Use the Spy REST Server instead of default
     89tests_add_filter( 'wp_rest_server_class', '_wp_rest_server_class_filter' );
    8890
    8991// Preset WordPress options defined in bootstrap file.
Note: See TracChangeset for help on using the changeset viewer.