diff --git a/core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php b/core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php
index bb2e481..7ca30e8 100644
--- a/core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php
@@ -54,17 +54,11 @@ protected function setUp() {
     $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();
-  }
-
   /**
+   * @requires function imagegd2()
+   */
+
+    /**
    * Function to compare two colors by RGBa.
    */
   public function colorsAreEqual($color_a, $color_b) {
