1 locale.test | protected LocaleDateFormatsFunctionalTest::checkRequirements() |
Checks the matching requirements for BackdropTestCase.
Return value
Array of errors containing a list of unmet requirements.:
Overrides BackdropTestCase::checkRequirements
File
- core/
modules/ locale/ tests/ locale.test, line 2726 - Tests for locale.module.
Class
- LocaleDateFormatsFunctionalTest
- Functional tests for localizing date formats.
Code
protected function checkRequirements() {
$errors = parent::checkRequirements();
if (!extension_loaded('intl')) {
$errors[] = 'PHP intl extension is not present.';
}
return $errors;
}