Changeset 54976 for branches/5.9/tests/phpunit/tests/http/base.php
- Timestamp:
- 12/15/2022 04:22:11 AM (3 years ago)
- Location:
- branches/5.9
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
tests/phpunit/tests/http/base.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.9
-
branches/5.9/tests/phpunit/tests/http/base.php
r52010 r54976 437 437 438 438 /** 439 * Test HTTP Redirects with multiple Location headers specified.440 *441 * @ticket 16890442 *443 * @covers ::wp_remote_head444 * @covers ::wp_remote_retrieve_header445 * @covers ::wp_remote_get446 * @covers ::wp_remote_retrieve_body447 */448 public function test_multiple_location_headers() {449 $url = 'http://api.wordpress.org/core/tests/1.0/redirection.php?multiple-location-headers=1';450 $res = wp_remote_head( $url, array( 'timeout' => 30 ) );451 452 $this->skipTestOnTimeout( $res );453 $this->assertIsArray( wp_remote_retrieve_header( $res, 'location' ) );454 $this->assertCount( 2, wp_remote_retrieve_header( $res, 'location' ) );455 456 $res = wp_remote_get( $url, array( 'timeout' => 30 ) );457 458 $this->skipTestOnTimeout( $res );459 $this->assertSame( 'PASS', wp_remote_retrieve_body( $res ) );460 461 }462 463 /**464 439 * Test HTTP Cookie handling. 465 440 *
Note: See TracChangeset
for help on using the changeset viewer.