1 image.test | protected ImageToolkitGdTestCase::checkRequirements() |
Checks the matching requirements for BackdropTestCase.
Return value
Array of errors containing a list of unmet requirements.:
Overrides BackdropTestCase::checkRequirements
File
- core/
modules/ simpletest/ tests/ image.test, line 208 - Tests for core image handling API.
Class
- ImageToolkitGdTestCase
- Test the core GD image manipulation functions.
Code
protected function checkRequirements() {
$errors = parent::checkRequirements();
image_get_available_toolkits();
if (!function_exists('image_gd_check_settings') || !image_gd_check_settings()) {
$errors[] = 'Image manipulations for the GD toolkit cannot run because the GD toolkit is not available.';
}
return $errors;
}