1.20.x simpletest.test protected SimpleTestMissingCheckedRequirements::checkRequirements()

Overrides checkRequirements().

Overrides BackdropTestCase::checkRequirements

File

modules/simpletest/tests/simpletest.test, line 544
Tests for simpletest.module.

Class

SimpleTestMissingCheckedRequirements
Tests missing requirements to run test.

Code

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

  if (backdrop_valid_test_ua()) {
    $errors[] = 'Test is not allowed to run.';
  }
  return $errors;
}