Issue #2861376 by chiranjeeb2410, tvb, vacho, Mile23, mr.baileys, dawehner, mondrake: ToolkitGdTest uses checkRequirements() incorrectly
(cherry picked from commit cb858a9c70
)
merge-requests/1754/merge
parent
ca25786635
commit
c0ae5a3f6c
|
@ -13,6 +13,7 @@ use Drupal\KernelTests\KernelTestBase;
|
||||||
* 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 @@ class ToolkitGdTest extends KernelTestBase {
|
||||||
$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.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue