Make WordPress Core

Changeset 57924


Ignore:
Timestamp:
04/04/2024 01:43:49 PM (6 months ago)
Author:
swissspidy
Message:

Build/Test Tools: Update a few image URLs in HTTP and image cropping tests.

Follow-up to #60865 / [57903] where similar instances were recently updated due to an upstream change.

Particularly the test_wp_crop_image_with_url() test recently began to fail on some environments, likely because of the same change.

This updates the image URLs with the aim to bring more consistency and to get the test passing again more broadly.

Fixes #60907.

Location:
trunk/tests/phpunit/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/http/functions.php

    r57904 r57924  
    5555     */
    5656    public function test_get_request() {
    57         $url = 'https://asdftestblog1.files.wordpress.com/2007/09/2007-06-30-dsc_4700-1.jpg';
     57        $url = 'https://asdftestblog1.wordpress.com/wp-content/uploads/2007/09/2007-06-30-dsc_4700-1.jpg';
    5858
    5959        $response = wp_remote_get( $url );
  • trunk/tests/phpunit/tests/image/functions.php

    r57524 r57924  
    639639    public function test_wp_crop_image_with_url() {
    640640        $file = wp_crop_image(
    641             'https://asdftestblog1.files.wordpress.com/2008/04/canola.jpg',
     641            'https://asdftestblog1.wordpress.com/wp-content/uploads/2008/04/canola.jpg',
    642642            0,
    643643            0,
     
    688688    public function test_wp_crop_image_should_fail_with_wp_error_object_if_url_does_not_exist() {
    689689        $file = wp_crop_image(
    690             'https://asdftestblog1.files.wordpress.com/2008/04/canoladoesnotexist.jpg',
     690            'https://asdftestblog1.wordpress.com/wp-content/uploads/2008/04/canoladoesnotexist.jpg',
    691691            0,
    692692            0,
Note: See TracChangeset for help on using the changeset viewer.