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/functions.php

    r42381 r42724  
    181181}
    182182
     183/**
     184 * Use the Spy_REST_Server class for the REST server.
     185 */
     186function _wp_rest_server_class_filter() {
     187    return 'Spy_REST_Server';
     188}
     189
    183190// Skip `setcookie` calls in auth_cookie functions due to warning:
    184191// Cannot modify header information - headers already sent by ...
Note: See TracChangeset for help on using the changeset viewer.