Make WordPress Core


Ignore:
Timestamp:
04/01/2024 05:16:55 PM (22 months ago)
Author:
audrasjb
Message:

Tests: Update expectations in wp_remote_head() and wp_remote_get() tests.

It appears that something has changed on the WP.com side to compress the requested images on the fly, which interfered with the previous expectations in these tests.

Follow-up to [139/tests], [31258], [47142].

Reviewed by audrasjb.
Merges [57903] and [57904] to the 6.5 branch.
Props dextorlobo, swissspidy, davidbaumwald, SergeyBiryukov.
Fixes #60865.

Location:
branches/6.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.5

  • branches/6.5/tests/phpunit/tests/functions/wpRemoteFopen.php

    r56971 r57908  
    2828    public function test_wp_remote_fopen() {
    2929        // This URL gives a direct 200 response.
    30         $url      = 'https://asdftestblog1.files.wordpress.com/2007/09/2007-06-30-dsc_4700-1.jpg';
     30        $url      = 'https://asdftestblog1.wordpress.com/wp-content/uploads/2007/09/2007-06-30-dsc_4700-1.jpg';
    3131        $response = wp_remote_fopen( $url );
    3232
Note: See TracChangeset for help on using the changeset viewer.