Make WordPress Core

Ticket #48074: 48074.6.patch

File 48074.6.patch, 802 bytes (added by dkarfa, 5 years ago)
  • tests/phpunit/tests/rest-api.php

     
    715715                $this->assertEquals( $routes['/test-ns/test'][0]['methods'], array( 'GET' => true ) );
    716716        }
    717717
    718         /**
    719          * Ensure rest_preload_api_request() works without notices in PHP 5.2.
    720          *
    721          * The array_reduce() function only accepts mixed variables starting with PHP 5.3.
    722          */
    723         function test_rest_preload_api_request_no_notices_php_52() {
    724                 $this->assertTrue( is_array( rest_preload_api_request( 0, '/' ) ) );
    725         }
    726 
    727718        function test_rest_preload_api_request_with_method() {
    728719                $rest_server               = $GLOBALS['wp_rest_server'];
    729720                $GLOBALS['wp_rest_server'] = null;