Changeset 54988 for branches/4.7/tests/phpunit/tests/http/base.php
- Timestamp:
- 12/15/2022 04:45:11 AM (22 months ago)
- Location:
- branches/4.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
-
branches/4.7/tests/phpunit/tests/http/base.php
r50088 r54988 357 357 358 358 /** 359 * Test HTTP Redirects with multiple Location headers specified360 *361 * @ticket 16890362 */363 function test_multiple_location_headers() {364 $url = 'http://api.wordpress.org/core/tests/1.0/redirection.php?multiple-location-headers=1';365 $res = wp_remote_head( $url, array( 'timeout' => 30 ) );366 367 $this->skipTestOnTimeout( $res );368 $this->assertInternalType( 'array', wp_remote_retrieve_header( $res, 'location' ) );369 $this->assertCount( 2, wp_remote_retrieve_header( $res, 'location' ) );370 371 $res = wp_remote_get( $url, array( 'timeout' => 30 ) );372 373 $this->skipTestOnTimeout( $res );374 $this->assertEquals( 'PASS', wp_remote_retrieve_body( $res ) );375 376 }377 378 /**379 359 * Test HTTP Cookie handling 380 360 *
Note: See TracChangeset
for help on using the changeset viewer.