Changeset 58016 for branches/4.1/tests/phpunit/tests/image/functions.php
- Timestamp:
- 04/16/2024 11:58:04 PM (11 months ago)
- Location:
- branches/4.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.1
-
branches/4.1/tests/phpunit/tests/image/functions.php
r40287 r58016 297 297 } 298 298 299 $file = wp_crop_image( 'https:// asdftestblog1.files.wordpress.com/2008/04/canola.jpg',299 $file = wp_crop_image( 'https://s.w.org/screenshots/3.9/dashboard.png', 300 300 0, 0, 100, 100, 100, 100, false, 301 DIR_TESTDATA . '/images/' . rand_str() . '. jpg' );301 DIR_TESTDATA . '/images/' . rand_str() . '.png' ); 302 302 $this->assertNotInstanceOf( 'WP_Error', $file ); 303 303 $this->assertFileExists( $file ); … … 321 321 } 322 322 323 $file = wp_crop_image( 'https:// asdftestblog1.files.wordpress.com/2008/04/canoladoesnotexist.jpg',323 $file = wp_crop_image( 'https://wordpress.org/screenshots/3.9/canoladoesnotexist.jpg', 324 324 0, 0, 100, 100, 100, 100 ); 325 325 $this->assertInstanceOf( 'WP_Error', $file );
Note: See TracChangeset
for help on using the changeset viewer.