mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 05:04:31 +00:00
Bootstrap: Fix failing external HTTP tests after [38411].
When testing the transports, the transport name needs to be capitalized for the class name to be correct (`WP_Http_Curl` vs. `WP_Http_curl` ). See #36335. git-svn-id: https://develop.svn.wordpress.org/trunk@38416 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -45,7 +45,7 @@ abstract class WP_HTTP_UnitTestCase extends WP_UnitTestCase {
|
||||
return;
|
||||
}
|
||||
|
||||
$class = "WP_Http_" . $this->transport;
|
||||
$class = "WP_Http_" . ucfirst( $this->transport );
|
||||
if ( !call_user_func( array($class, 'test') ) ) {
|
||||
$this->markTestSkipped( sprintf('The transport %s is not supported on this system', $this->transport) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user