diff --git a/core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php b/core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php index 4031189c9b17d1ae4cf625a7a6640682599b7cc2..3854f3ef8f1d49ec9a95a9a13480d56b2266996c 100644 --- a/core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php +++ b/core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php @@ -13,6 +13,7 @@ * crop, scale and crop, and desaturate. * * @group Image + * @requires extension gd */ class ToolkitGdTest extends KernelTestBase { @@ -65,16 +66,6 @@ protected function setUp(): void { $this->imageFactory = $this->container->get('image.factory'); } - protected function checkRequirements() { - // GD2 support is available. - if (!function_exists('imagegd2')) { - return [ - 'Image manipulations for the GD toolkit cannot run because the GD toolkit is not available.', - ]; - } - return parent::checkRequirements(); - } - /** * Function to compare two colors by RGBa. */