Changeset 40289 for branches/4.0/tests/phpunit/tests/image/functions.php
- Timestamp:
- 03/13/2017 10:57:19 PM (8 years ago)
- Location:
- branches/4.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.0
- Property svn:mergeinfo changed
/trunk merged: 31258-31259
- Property svn:mergeinfo changed
-
branches/4.0/tests/phpunit/tests/image/functions.php
r29120 r40289 291 291 $this->markTestSkipped( 'jpeg support unavailable' ); 292 292 293 $file = wp_crop_image( 'http://asdftestblog1.files.wordpress.com/2008/04/canola.jpg', 293 if ( ! extension_loaded( 'openssl' ) ) { 294 $this->markTestSkipped( 'Tests_Image_Functions::test_wp_crop_image_url() requires openssl.' ); 295 } 296 297 $file = wp_crop_image( 'https://asdftestblog1.files.wordpress.com/2008/04/canola.jpg', 294 298 0, 0, 100, 100, 100, 100, false, 295 299 DIR_TESTDATA . '/images/' . rand_str() . '.jpg' ); … … 311 315 312 316 public function test_wp_crop_image_url_not_exist() { 313 $file = wp_crop_image( 'http://asdftestblog1.files.wordpress.com/2008/04/canoladoesnotexist.jpg', 317 if ( ! extension_loaded( 'openssl' ) ) { 318 $this->markTestSkipped( 'Tests_Image_Functions::test_wp_crop_image_url_not_exist() requires openssl.' ); 319 } 320 321 $file = wp_crop_image( 'https://asdftestblog1.files.wordpress.com/2008/04/canoladoesnotexist.jpg', 314 322 0, 0, 100, 100, 100, 100 ); 315 323 $this->assertInstanceOf( 'WP_Error', $file );
Note: See TracChangeset
for help on using the changeset viewer.