Skip to content

Commit

Permalink
test: address http_api_transports deprecation in WP 6.4 (#4903)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks authored Sep 27, 2023
1 parent 8761eba commit 56ec94e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/files/test-curl-streamer.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ public function tearDown(): void {
}

public function test__init() {
global $wp_version;

$version = preg_replace( '/-.*$/', '', $wp_version );
if ( version_compare( $version, '6.4', '>=' ) ) {
$this->setExpectedDeprecated( 'http_api_transports' );
}

$expected_transport = 'WP_Http_Curl';

$wp_http = new \WP_Http();
Expand Down

0 comments on commit 56ec94e

Please sign in to comment.