Changeset 48485
- Timestamp:
- 07/14/2020 09:32:44 PM (5 years ago)
- Location:
- branches/5.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.1
- Property svn:mergeinfo changed
/trunk merged: 48338,48341
- Property svn:mergeinfo changed
-
branches/5.1/tests/phpunit/tests/image/functions.php
r43571 r48485 424 424 copy( $orig_file, $test_file ); 425 425 426 $editor = wp_get_image_editor( $test_file ); 427 if ( is_wp_error( $editor ) ) { 428 $this->markTestSkipped( $editor->get_error_message() ); 429 } 430 426 431 $attachment_id = $this->factory->attachment->create_object( 427 432 $test_file, … … 489 494 copy( $orig_file, $test_file ); 490 495 496 $editor = wp_get_image_editor( $test_file ); 497 if ( is_wp_error( $editor ) ) { 498 $this->markTestSkipped( $editor->get_error_message() ); 499 } 500 491 501 $attachment_id = $this->factory->attachment->create_object( 492 502 $test_file, … … 549 559 copy( $orig_file, $test_file ); 550 560 561 $editor = wp_get_image_editor( $test_file ); 562 if ( is_wp_error( $editor ) ) { 563 $this->markTestSkipped( $editor->get_error_message() ); 564 } 565 551 566 $attachment_id = $this->factory->attachment->create_object( 552 567 $test_file, … … 608 623 $pdf_path = '/tmp/test.pdf'; 609 624 copy( DIR_TESTDATA . '/images/wordpress-gsoc-flyer.pdf', $pdf_path ); 625 626 $editor = wp_get_image_editor( $pdf_path ); 627 if ( is_wp_error( $editor ) ) { 628 $this->markTestSkipped( $editor->get_error_message() ); 629 } 610 630 611 631 $attachment_id = $this->factory->attachment->create_object(
Note: See TracChangeset
for help on using the changeset viewer.