Tests: Remove a test for `rest_preload_api_request()` only relevant for PHP 5.2.

Props dkarfa.
See #48074.

git-svn-id: https://develop.svn.wordpress.org/trunk@46219 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2019-09-20 22:26:18 +00:00
parent 8e454ba7f8
commit 3a49864e41
1 changed files with 0 additions and 9 deletions

View File

@ -780,15 +780,6 @@ class Tests_REST_API extends WP_UnitTestCase {
$this->assertEquals( $routes['/test-ns/test'][0]['methods'], array( 'GET' => true ) );
}
/**
* Ensure rest_preload_api_request() works without notices in PHP 5.2.
*
* The array_reduce() function only accepts mixed variables starting with PHP 5.3.
*/
function test_rest_preload_api_request_no_notices_php_52() {
$this->assertTrue( is_array( rest_preload_api_request( 0, '/' ) ) );
}
function test_rest_preload_api_request_with_method() {
$rest_server = $GLOBALS['wp_rest_server'];
$GLOBALS['wp_rest_server'] = null;