Make WordPress Core

Changeset 53497


Ignore:
Timestamp:
06/14/2022 11:44:58 AM (2 years ago)
Author:
SergeyBiryukov
Message:

Tests: Remove redundant skip call in Tests_Image_Functions::get_image_editor_engine_classes().

The test bootstrap requires GD to be available, so this test skip condition will never be matched.

Also, test skipping from within a helper method, which may be used in a data provider, can lead to test runtime errors.

Follow-up to [49009], [49014], [49535], [49571], [51415].

Props jrf.
See #55652.

File:
1 edited

Legend:

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

    r53495 r53497  
    4141                unset( $classes[ $key ] );
    4242            }
    43         }
    44 
    45         if ( empty( $classes ) ) {
    46             $this->markTestSkipped( 'Image editor engines WP_Image_Editor_GD and WP_Image_Editor_Imagick are not supported on this system.' );
    4743        }
    4844
Note: See TracChangeset for help on using the changeset viewer.