diff --git tests/phpunit/tests/image/functions.php tests/phpunit/tests/image/functions.php
index b64d43b8ac2..7ed2f0b1b20 100644
|
|
class Tests_Image_Functions extends WP_UnitTestCase { |
468 | 468 | * @ticket 39875 |
469 | 469 | */ |
470 | 470 | public function test_pdf_preview_doesnt_overwrite_existing_jpeg() { |
| 471 | if ( ! wp_image_editor_supports( array( 'mime_type' => 'application/pdf' ) ) ) { |
| 472 | $this->markTestSkipped( 'Rendering PDFs is not supported on this system.' ); |
| 473 | } |
| 474 | |
471 | 475 | // Dummy JPEGs. |
472 | 476 | $jpg1_path = '/tmp/test.jpg'; // Straight. |
473 | 477 | file_put_contents( $jpg1_path, 'asdf' ); |