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

(cherry picked from commit cb858a9c70)
merge-requests/1754/merge
Alex Pott 2022-02-20 09:50:37 +00:00
parent ca25786635
commit c0ae5a3f6c
No known key found for this signature in database
GPG Key ID: BDA67E7EE836E5CE
1 changed files with 1 additions and 10 deletions

View File

@ -13,6 +13,7 @@ use Drupal\KernelTests\KernelTestBase;
* crop, scale and crop, and desaturate.
*
* @group Image
* @requires extension gd
*/
class ToolkitGdTest extends KernelTestBase {
@ -65,16 +66,6 @@ class ToolkitGdTest extends KernelTestBase {
$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.
*/