WordPress.org

Make WordPress Core

Changeset 46219


Ignore:
Timestamp:
09/20/2019 10:26:18 PM (2 months ago)
Author:
SergeyBiryukov
Message:

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

Props dkarfa.
See #48074.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api.php

    r46184 r46219  
    781781    }
    782782
    783     /**
    784      * Ensure rest_preload_api_request() works without notices in PHP 5.2.
    785      *
    786      * The array_reduce() function only accepts mixed variables starting with PHP 5.3.
    787      */
    788     function test_rest_preload_api_request_no_notices_php_52() {
    789         $this->assertTrue( is_array( rest_preload_api_request( 0, '/' ) ) );
    790     }
    791 
    792783    function test_rest_preload_api_request_with_method() {
    793784        $rest_server               = $GLOBALS['wp_rest_server'];
Note: See TracChangeset for help on using the changeset viewer.