1 simpletest.test protected SimpleTestMissingCheckedRequirements::checkRequirements()

Overrides checkRequirements().

Overrides BackdropTestCase::checkRequirements

File

core/modules/simpletest/tests/simpletest.test, line 532
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;
}