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.

git-svn-id: https://develop.svn.wordpress.org/trunk@53497 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2022-06-14 11:44:58 +00:00
parent 6d89ea8f09
commit a067d588c3

View File

@ -42,10 +42,6 @@ class Tests_Image_Functions extends WP_UnitTestCase {
}
}
if ( empty( $classes ) ) {
$this->markTestSkipped( 'Image editor engines WP_Image_Editor_GD and WP_Image_Editor_Imagick are not supported on this system.' );
}
return $classes;
}