1 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

core/modules/link/tests/link.validate.test, line 17
Tests that exercise the validation functions in the link module.

Class

LinkValidateTest

Code

protected function checkRequirements() {
  $errors = parent::checkRequirements();

  if (!extension_loaded('intl')) {
    $errors[] = 'PHP intl extension is not present.';
  }

  return $errors;
}