Make WordPress Core

Changeset 57908

Timestamp:
04/01/2024 05:16:55 PM (3 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:
3 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./2007/09/2007-06-30-dsc_4700-1.jpg';
    3131        $response = wp_remote_fopen( $url );
    3232
  • branches/6.5/tests/phpunit/tests/http/functions.php

    r55210 r57908  
    1212    public function test_head_request() {
    1313        // This URL gives a direct 200 response.
    14         $url      = 'https://asdftestblog1.files.wordpress.com/2007/09/2007-06-30-dsc_4700-1.jpg';
     14        $url      = 'https://asdftestblog1./2007/09/2007-06-30-dsc_4700-1.jpg';
    1515        $response = wp_remote_head( $url );
    1616
     
    4242     */
    4343    public function test_head_404() {
    44         $url      = 'https://asdftestblog1.files.wordpress.com/2007/09/awefasdfawef.jpg';
     44        $url      = 'https://asdftestblog1./2007/09/awefasdfawef.jpg';
    4545        $response = wp_remote_head( $url );
    4646
Note: See TracChangeset for help on using the changeset viewer.