Changeset 56319 for trunk/tests/phpunit/tests/http/http.php
- Timestamp:
- 07/27/2023 02:45:09 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/http/http.php
r55562 r56319 1 1 <?php 2 2 /** 3 * Non-transport-specific WP_H TTPTests3 * Non-transport-specific WP_Http Tests 4 4 * 5 5 * @group http … … 582 582 * Test HTTP Redirects with multiple Location headers specified. 583 583 * 584 * Ensure the WP_H TTP::handle_redirects() method handles multiple Location headers584 * Ensure the WP_Http::handle_redirects() method handles multiple Location headers 585 585 * and the HTTP request it makes uses the last Location header. 586 586 * … … 588 588 * @ticket 57306 589 589 * 590 * @covers WP_H TTP::handle_redirects590 * @covers WP_Http::handle_redirects 591 591 */ 592 592 public function test_multiple_location_headers() { 593 593 $pre_http_request_filter_has_run = false; 594 // Filter the response made by WP_H TTP::handle_redirects().594 // Filter the response made by WP_Http::handle_redirects(). 595 595 add_filter( 596 596 'pre_http_request', … … 635 635 ); 636 636 637 // Test the tests: ensure multiple locations are passed to WP_H TTP::handle_redirects().637 // Test the tests: ensure multiple locations are passed to WP_Http::handle_redirects(). 638 638 $this->assertIsArray( $headers['location'], 'Location header is expected to be an array.' ); 639 639 $this->assertCount( 2, $headers['location'], 'Location header is expected to contain two values.' ); … … 646 646 ); 647 647 648 $redirect_response = WP_H TTP::handle_redirects(648 $redirect_response = WP_Http::handle_redirects( 649 649 'http://example.com/?multiple-location-headers=1', 650 650 $args,
Note: See TracChangeset
for help on using the changeset viewer.