Changeset 54992 for branches/4.3/tests/phpunit/tests/http/base.php
- Timestamp:
- 12/15/2022 04:51:12 AM (4 years ago)
- Location:
- branches/4.3
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
tests/phpunit/tests/http/base.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.3
-
branches/4.3/tests/phpunit/tests/http/base.php
r50101 r54992 333 333 334 334 /** 335 * Test HTTP Redirects with multiple Location headers specified336 *337 * @ticket 16890338 */339 function test_multiple_location_headers() {340 $url = 'http://api.wordpress.org/core/tests/1.0/redirection.php?multiple-location-headers=1';341 $res = wp_remote_head( $url, array( 'timeout' => 30 ) );342 343 $this->skipTestOnTimeout( $res );344 $this->assertInternalType( 'array', wp_remote_retrieve_header( $res, 'location' ) );345 $this->assertCount( 2, wp_remote_retrieve_header( $res, 'location' ) );346 347 $res = wp_remote_get( $url, array( 'timeout' => 30 ) );348 349 $this->skipTestOnTimeout( $res );350 $this->assertEquals( 'PASS', wp_remote_retrieve_body( $res ) );351 352 }353 354 /**355 335 * Test HTTP Cookie handling 356 336 *
Note:
See TracChangeset
for help on using the changeset viewer.