Make WordPress Core


Ignore:
Timestamp:
07/27/2023 02:45:09 PM (18 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use correct case for class name in WP_Http tests.

Follow-up to [8516], [54968].

Props jrf.
See #58831.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/http/http.php

    r55562 r56319  
    11<?php
    22/**
    3  * Non-transport-specific WP_HTTP Tests
     3 * Non-transport-specific WP_Http Tests
    44 *
    55 * @group http
     
    582582     * Test HTTP Redirects with multiple Location headers specified.
    583583     *
    584      * Ensure the WP_HTTP::handle_redirects() method handles multiple Location headers
     584     * Ensure the WP_Http::handle_redirects() method handles multiple Location headers
    585585     * and the HTTP request it makes uses the last Location header.
    586586     *
     
    588588     * @ticket 57306
    589589     *
    590      * @covers WP_HTTP::handle_redirects
     590     * @covers WP_Http::handle_redirects
    591591     */
    592592    public function test_multiple_location_headers() {
    593593        $pre_http_request_filter_has_run = false;
    594         // Filter the response made by WP_HTTP::handle_redirects().
     594        // Filter the response made by WP_Http::handle_redirects().
    595595        add_filter(
    596596            'pre_http_request',
     
    635635        );
    636636
    637         // Test the tests: ensure multiple locations are passed to WP_HTTP::handle_redirects().
     637        // Test the tests: ensure multiple locations are passed to WP_Http::handle_redirects().
    638638        $this->assertIsArray( $headers['location'], 'Location header is expected to be an array.' );
    639639        $this->assertCount( 2, $headers['location'], 'Location header is expected to contain two values.' );
     
    646646        );
    647647
    648         $redirect_response = WP_HTTP::handle_redirects(
     648        $redirect_response = WP_Http::handle_redirects(
    649649            'http://example.com/?multiple-location-headers=1',
    650650            $args,
Note: See TracChangeset for help on using the changeset viewer.