Changeset 58015 for branches/4.2/tests/phpunit/tests/image/functions.php
- Timestamp:
- 04/16/2024 11:42:33 PM (10 months ago)
- Location:
- branches/4.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.2
-
branches/4.2/tests/phpunit/tests/image/functions.php
r31512 r58015 305 305 } 306 306 307 $file = wp_crop_image( 'https:// asdftestblog1.files.wordpress.com/2008/04/canola.jpg',307 $file = wp_crop_image( 'https://s.w.org/screenshots/3.9/dashboard.png', 308 308 0, 0, 100, 100, 100, 100, false, 309 DIR_TESTDATA . '/images/' . rand_str() . '. jpg' );309 DIR_TESTDATA . '/images/' . rand_str() . '.png' ); 310 310 $this->assertNotInstanceOf( 'WP_Error', $file ); 311 311 $this->assertFileExists( $file ); … … 329 329 } 330 330 331 $file = wp_crop_image( 'https:// asdftestblog1.files.wordpress.com/2008/04/canoladoesnotexist.jpg',331 $file = wp_crop_image( 'https://wordpress.org/screenshots/3.9/canoladoesnotexist.jpg', 332 332 0, 0, 100, 100, 100, 100 ); 333 333 $this->assertInstanceOf( 'WP_Error', $file );
Note: See TracChangeset
for help on using the changeset viewer.