WordPress.org

Make WordPress Core

Changeset 40131


Ignore:
Timestamp:
02/27/2017 05:50:21 PM (4 years ago)
Author:
joemcgill
Message:

Media: Skip PDF preview tests when image editor doens't support.

Following [40130] tests fail on environments that don't support PDF
previews because the expected meta data doesn't get written.

See #39875.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/image/functions.php

    r40130 r40131  
    469469     */
    470470    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
    471475        // Dummy JPEGs.
    472476        $jpg1_path = '/tmp/test.jpg'; // Straight.
Note: See TracChangeset for help on using the changeset viewer.