Make WordPress Core


Ignore:
Timestamp:
04/04/2024 01:43:49 PM (10 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.