mirror of
git://develop.git.wordpress.org/
synced 2025-02-22 07:35:46 +01:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@57924 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
554f5b5723
commit
90ea883871
@ -54,7 +54,7 @@ class Tests_HTTP_Functions extends WP_UnitTestCase {
|
||||
* @covers ::wp_remote_retrieve_response_code
|
||||
*/
|
||||
public function test_get_request() {
|
||||
$url = 'https://asdftestblog1.files.wordpress.com/2007/09/2007-06-30-dsc_4700-1.jpg';
|
||||
$url = 'https://asdftestblog1.wordpress.com/wp-content/uploads/2007/09/2007-06-30-dsc_4700-1.jpg';
|
||||
|
||||
$response = wp_remote_get( $url );
|
||||
|
||||
|
@ -638,7 +638,7 @@ class Tests_Image_Functions extends WP_UnitTestCase {
|
||||
*/
|
||||
public function test_wp_crop_image_with_url() {
|
||||
$file = wp_crop_image(
|
||||
'https://asdftestblog1.files.wordpress.com/2008/04/canola.jpg',
|
||||
'https://asdftestblog1.wordpress.com/wp-content/uploads/2008/04/canola.jpg',
|
||||
0,
|
||||
0,
|
||||
100,
|
||||
@ -687,7 +687,7 @@ class Tests_Image_Functions extends WP_UnitTestCase {
|
||||
*/
|
||||
public function test_wp_crop_image_should_fail_with_wp_error_object_if_url_does_not_exist() {
|
||||
$file = wp_crop_image(
|
||||
'https://asdftestblog1.files.wordpress.com/2008/04/canoladoesnotexist.jpg',
|
||||
'https://asdftestblog1.wordpress.com/wp-content/uploads/2008/04/canoladoesnotexist.jpg',
|
||||
0,
|
||||
0,
|
||||
100,
|
||||
|
Loading…
x
Reference in New Issue
Block a user