WordPress.org

Make WordPress Core

Changeset 42431


Ignore:
Timestamp:
01/10/2018 01:16:56 AM (20 months ago)
Author:
mikeschroder
Message:

Media: Skip test_remove_orientation_data_on_rotate if missing deps.

The test_remove_orientation_data_on_rotate() test was failing on systems that did not have the exif extension available.

Skips test when the exif_read_data() function does not exist.

Props danielbachhuber, desrosj.
Fixes #42447.

File:
1 edited

Legend:

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

    r42343 r42431  
    551551     */
    552552    public function test_remove_orientation_data_on_rotate() {
     553        if ( ! function_exists( 'exif_read_data' ) ) {
     554            $this->markTestSkipped( 'This test requires the exif_read_data function.' );
     555        }
     556
    553557        $file = DIR_TESTDATA . '/images/test-image-upside-down.jpg';
    554558        $data = wp_read_image_metadata( $file );
Note: See TracChangeset for help on using the changeset viewer.