Changeset 54984 for branches/5.1/tests/phpunit/tests/http/base.php
- Timestamp:
- 12/15/2022 04:35:10 AM (21 months ago)
- Location:
- branches/5.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.1
-
branches/5.1/tests/phpunit/tests/http/base.php
r50094 r54984 395 395 396 396 /** 397 * Test HTTP Redirects with multiple Location headers specified398 *399 * @ticket 16890400 */401 function test_multiple_location_headers() {402 $url = 'http://api.wordpress.org/core/tests/1.0/redirection.php?multiple-location-headers=1';403 $res = wp_remote_head( $url, array( 'timeout' => 30 ) );404 405 $this->skipTestOnTimeout( $res );406 $this->assertInternalType( 'array', wp_remote_retrieve_header( $res, 'location' ) );407 $this->assertCount( 2, wp_remote_retrieve_header( $res, 'location' ) );408 409 $res = wp_remote_get( $url, array( 'timeout' => 30 ) );410 411 $this->skipTestOnTimeout( $res );412 $this->assertEquals( 'PASS', wp_remote_retrieve_body( $res ) );413 414 }415 416 /**417 397 * Test HTTP Cookie handling 418 398 *
Note: See TracChangeset
for help on using the changeset viewer.