Changeset 48341 for trunk/tests/phpunit/tests/image/functions.php
- Timestamp:
- 07/06/2020 06:20:32 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/functions.php
r48338 r48341 424 424 copy( $orig_file, $test_file ); 425 425 426 $this->assertNotWPError( wp_get_image_editor( $test_file ) ); 426 $editor = wp_get_image_editor( $test_file ); 427 if ( is_wp_error( $editor ) ) { 428 $this->markTestSkipped( $editor->get_error_message() ); 429 } 427 430 428 431 $attachment_id = $this->factory->attachment->create_object( … … 491 494 copy( $orig_file, $test_file ); 492 495 493 $this->assertNotWPError( wp_get_image_editor( $test_file ) ); 496 $editor = wp_get_image_editor( $test_file ); 497 if ( is_wp_error( $editor ) ) { 498 $this->markTestSkipped( $editor->get_error_message() ); 499 } 494 500 495 501 $attachment_id = $this->factory->attachment->create_object( … … 553 559 copy( $orig_file, $test_file ); 554 560 555 $this->assertNotWPError( wp_get_image_editor( $test_file ) ); 561 $editor = wp_get_image_editor( $test_file ); 562 if ( is_wp_error( $editor ) ) { 563 $this->markTestSkipped( $editor->get_error_message() ); 564 } 556 565 557 566 $attachment_id = $this->factory->attachment->create_object( … … 615 624 copy( DIR_TESTDATA . '/images/wordpress-gsoc-flyer.pdf', $pdf_path ); 616 625 617 $this->assertNotWPError( wp_get_image_editor( $pdf_path ) ); 626 $editor = wp_get_image_editor( $pdf_path ); 627 if ( is_wp_error( $editor ) ) { 628 $this->markTestSkipped( $editor->get_error_message() ); 629 } 618 630 619 631 $attachment_id = $this->factory->attachment->create_object(
Note: See TracChangeset
for help on using the changeset viewer.