Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion tests/phpunit/tests/image/editorImagick.php
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,13 @@ public function test_remove_pdf_alpha_channel_should_remove_the_alpha_channel_in
$this->markTestSkipped( 'The version of ImageMagick does not support removing alpha channels from PDFs.' );
}

$test_file = DIR_TESTDATA . '/images/test-alpha.pdf';
$test_file = DIR_TESTDATA . '/images/test-alpha.pdf';

$editor = wp_get_image_editor( $test_file );
if ( is_wp_error( $editor ) ) {
$this->markTestSkipped( $editor->get_error_message() );
Comment on lines +670 to +672
}

$attachment_id = $this->factory->attachment->create_upload_object( $test_file );
$this->assertNotEmpty( $attachment_id, 'The attachment was not created before testing.' );

Expand Down
Loading