You are here

protected function MissingCheckedRequirementsTest::checkRequirements in SimpleTest 8.3

Overrides checkRequirements().

Overrides TestBase::checkRequirements

File

src/Tests/MissingCheckedRequirementsTest.php, line 32

Class

MissingCheckedRequirementsTest
Tests a test case with missing requirements.

Namespace

Drupal\simpletest\Tests

Code

protected function checkRequirements() {
  if ($this
    ->isInChildSite()) {
    return [
      'Test is not allowed to run.',
    ];
  }
  return parent::checkRequirements();
}