Changeset 48488 for branches/4.8
- Timestamp:
- 07/14/2020 09:47:56 PM (6 years ago)
- Location:
- branches/4.8
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
tests/phpunit/tests/image/functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.8
- Property svn:mergeinfo changed
/trunk merged: 48338,48341
- Property svn:mergeinfo changed
-
branches/4.8/tests/phpunit/tests/image/functions.php
r40532 r48488 371 371 $test_file = '/tmp/wordpress-gsoc-flyer.pdf'; 372 372 copy( $orig_file, $test_file ); 373 374 $editor = wp_get_image_editor( $test_file ); 375 if ( is_wp_error( $editor ) ) { 376 $this->markTestSkipped( $editor->get_error_message() ); 377 } 373 378 374 379 $attachment_id = $this->factory->attachment->create_object( $test_file, 0, array( … … 428 433 copy( $orig_file, $test_file ); 429 434 435 $editor = wp_get_image_editor( $test_file ); 436 if ( is_wp_error( $editor ) ) { 437 $this->markTestSkipped( $editor->get_error_message() ); 438 } 439 430 440 $attachment_id = $this->factory->attachment->create_object( $test_file, 0, array( 431 441 'post_mime_type' => 'application/pdf', … … 482 492 $pdf_path = '/tmp/test.pdf'; 483 493 copy( DIR_TESTDATA . '/images/wordpress-gsoc-flyer.pdf', $pdf_path ); 494 495 $editor = wp_get_image_editor( $test_file ); 496 if ( is_wp_error( $editor ) ) { 497 $this->markTestSkipped( $editor->get_error_message() ); 498 } 484 499 485 500 $attachment_id = $this->factory->attachment->create_object( $pdf_path, 0, array(
Note: See TracChangeset
for help on using the changeset viewer.