Skip to content
Snippets Groups Projects
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
Branches
Tags
9 merge requests!2496Issue #3222757 by lauriii, Wim Leers, nod_, rachel_norfolk, itmaybejj,...,!2366Issue #3285105 by Daniel Arend,!2304Issue #3258987: Class "Drupal\Core\Utility\Error" not found in _drupal_error_handler_real() due to bug in PHP 8.1.0-8.1.5,!2148Issue #3270899: Remove Color module from core,!2071Issue #927570: Setting 403 or 404 handler to a page that redirects leads to endless loop,!1975Issue #3269749: losing query params from user to user/login redirect,!1387Draft: Resolve #2511878 "Support enclosure field",!799Issue #3214332: Preview content is broken in Claro.,!558Resolve #3020422 "Toolbar style update"
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
* crop, scale and crop, and desaturate. * crop, scale and crop, and desaturate.
* *
* @group Image * @group Image
* @requires extension gd
*/ */
class ToolkitGdTest extends KernelTestBase { class ToolkitGdTest extends KernelTestBase {
...@@ -65,16 +66,6 @@ protected function setUp(): void { ...@@ -65,16 +66,6 @@ protected function setUp(): void {
$this->imageFactory = $this->container->get('image.factory'); $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. * Function to compare two colors by RGBa.
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment