1.20.x link.validate.test | protected LinkValidateTest::checkRequirements() |
Checks the matching requirements for BackdropTestCase.
Return value
Array of errors containing a list of unmet requirements.:
Overrides BackdropTestCase::checkRequirements
File
- modules/
link/ tests/ link.validate.test, line 18 - Tests that exercise the validation functions in the link module.
Class
Code
protected function checkRequirements() {
$errors = parent::checkRequirements();
if (!extension_loaded('intl')) {
$errors[] = 'PHP intl extension is not present.';
}
return $errors;
}