Changeset 42228 for trunk/tests/phpunit/tests/image/functions.php
- Timestamp:
- 11/26/2017 11:56:25 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/functions.php
r41841 r42228 293 293 294 294 $file = wp_crop_image( DIR_TESTDATA . '/images/canola.jpg', 295 295 0, 0, 100, 100, 100, 100 ); 296 296 $this->assertNotInstanceOf( 'WP_Error', $file ); 297 297 $this->assertFileExists( $file ); … … 313 313 314 314 $file = wp_crop_image( 'https://asdftestblog1.files.wordpress.com/2008/04/canola.jpg', 315 316 315 0, 0, 100, 100, 100, 100, false, 316 DIR_TESTDATA . '/images/' . __FUNCTION__ . '.jpg' ); 317 317 $this->assertNotInstanceOf( 'WP_Error', $file ); 318 318 $this->assertFileExists( $file ); … … 327 327 public function test_wp_crop_image_file_not_exist() { 328 328 $file = wp_crop_image( DIR_TESTDATA . '/images/canoladoesnotexist.jpg', 329 329 0, 0, 100, 100, 100, 100 ); 330 330 $this->assertInstanceOf( 'WP_Error', $file ); 331 331 } … … 337 337 338 338 $file = wp_crop_image( 'https://asdftestblog1.files.wordpress.com/2008/04/canoladoesnotexist.jpg', 339 339 0, 0, 100, 100, 100, 100 ); 340 340 $this->assertInstanceOf( 'WP_Error', $file ); 341 341 } … … 353 353 354 354 $file = wp_crop_image( DIR_TESTDATA . '/images/canola.jpg', 355 355 0, 0, 100, 100, 100, 100 ); 356 356 $this->assertInstanceOf( 'WP_Error', $file ); 357 357
Note: See TracChangeset
for help on using the changeset viewer.