Ticket #48074: 48074.6.patch
File 48074.6.patch, 802 bytes (added by , 5 years ago) |
---|
-
tests/phpunit/tests/rest-api.php
715 715 $this->assertEquals( $routes['/test-ns/test'][0]['methods'], array( 'GET' => true ) ); 716 716 } 717 717 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 727 718 function test_rest_preload_api_request_with_method() { 728 719 $rest_server = $GLOBALS['wp_rest_server']; 729 720 $GLOBALS['wp_rest_server'] = null;