Changeset 58001 for branches/5.0/tests/phpunit/tests/image/functions.php
- Timestamp:
- 04/15/2024 01:43:40 PM (8 months ago)
- Location:
- branches/5.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0
-
branches/5.0/tests/phpunit/tests/image/functions.php
r49523 r58001 312 312 } 313 313 314 $file = wp_crop_image( 'https:// asdftestblog1.files.wordpress.com/2008/04/canola.jpg',314 $file = wp_crop_image( 'https://s.w.org/screenshots/3.9/dashboard.png', 315 315 0, 0, 100, 100, 100, 100, false, 316 DIR_TESTDATA . '/images/' . __FUNCTION__ . '. jpg' );316 DIR_TESTDATA . '/images/' . __FUNCTION__ . '.png' ); 317 317 $this->assertNotInstanceOf( 'WP_Error', $file ); 318 318 $this->assertFileExists( $file ); … … 336 336 } 337 337 338 $file = wp_crop_image( 'https:// asdftestblog1.files.wordpress.com/2008/04/canoladoesnotexist.jpg',338 $file = wp_crop_image( 'https://wordpress.org/screenshots/3.9/canoladoesnotexist.jpg', 339 339 0, 0, 100, 100, 100, 100 ); 340 340 $this->assertInstanceOf( 'WP_Error', $file );
Note: See TracChangeset
for help on using the changeset viewer.