Changeset 54990 for branches/4.5/tests/phpunit/tests/http/base.php
- Timestamp:
- 12/15/2022 04:48:15 AM (3 years ago)
- Location:
- branches/4.5
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
tests/phpunit/tests/http/base.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.5
-
branches/4.5/tests/phpunit/tests/http/base.php
r50090 r54990 362 362 363 363 /** 364 * Test HTTP Redirects with multiple Location headers specified365 *366 * @ticket 16890367 */368 function test_multiple_location_headers() {369 $url = 'http://api.wordpress.org/core/tests/1.0/redirection.php?multiple-location-headers=1';370 $res = wp_remote_head( $url, array( 'timeout' => 30 ) );371 372 $this->skipTestOnTimeout( $res );373 $this->assertInternalType( 'array', wp_remote_retrieve_header( $res, 'location' ) );374 $this->assertCount( 2, wp_remote_retrieve_header( $res, 'location' ) );375 376 $res = wp_remote_get( $url, array( 'timeout' => 30 ) );377 378 $this->skipTestOnTimeout( $res );379 $this->assertEquals( 'PASS', wp_remote_retrieve_body( $res ) );380 381 }382 383 /**384 364 * Test HTTP Cookie handling 385 365 *
Note: See TracChangeset
for help on using the changeset viewer.