Changeset 48486 for branches/5.0/tests/phpunit/tests/image/functions.php
- Timestamp:
- 07/14/2020 09:33:30 PM (4 years ago)
- Location:
- branches/5.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0
- Property svn:mergeinfo changed
/trunk merged: 48338,48341
- Property svn:mergeinfo changed
-
branches/5.0/tests/phpunit/tests/image/functions.php
r42813 r48486 372 372 copy( $orig_file, $test_file ); 373 373 374 $editor = wp_get_image_editor( $test_file ); 375 if ( is_wp_error( $editor ) ) { 376 $this->markTestSkipped( $editor->get_error_message() ); 377 } 378 374 379 $attachment_id = $this->factory->attachment->create_object( $test_file, 0, array( 375 380 'post_mime_type' => 'application/pdf', … … 433 438 copy( $orig_file, $test_file ); 434 439 440 $editor = wp_get_image_editor( $test_file ); 441 if ( is_wp_error( $editor ) ) { 442 $this->markTestSkipped( $editor->get_error_message() ); 443 } 444 435 445 $attachment_id = $this->factory->attachment->create_object( 436 446 $test_file, 0, array( … … 491 501 copy( $orig_file, $test_file ); 492 502 503 $editor = wp_get_image_editor( $test_file ); 504 if ( is_wp_error( $editor ) ) { 505 $this->markTestSkipped( $editor->get_error_message() ); 506 } 507 493 508 $attachment_id = $this->factory->attachment->create_object( $test_file, 0, array( 494 509 'post_mime_type' => 'application/pdf', … … 545 560 $pdf_path = '/tmp/test.pdf'; 546 561 copy( DIR_TESTDATA . '/images/wordpress-gsoc-flyer.pdf', $pdf_path ); 562 563 $editor = wp_get_image_editor( $test_file ); 564 if ( is_wp_error( $editor ) ) { 565 $this->markTestSkipped( $editor->get_error_message() ); 566 } 547 567 548 568 $attachment_id = $this->factory->attachment->create_object( $pdf_path, 0, array(
Note: See TracChangeset
for help on using the changeset viewer.