Unverified Commit c0ae5a3f authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2861376 by chiranjeeb2410, tvb, vacho, Mile23, mr.baileys, dawehner,...

Issue #2861376 by chiranjeeb2410, tvb, vacho, Mile23, mr.baileys, dawehner, mondrake: ToolkitGdTest uses checkRequirements() incorrectly

(cherry picked from commit cb858a9c)
parent ca257866
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -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.
   */