You are here

protected function MissingCheckedRequirementsTest::checkRequirements in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/simpletest/src/Tests/MissingCheckedRequirementsTest.php \Drupal\simpletest\Tests\MissingCheckedRequirementsTest::checkRequirements()

Overrides checkRequirements().

Overrides TestBase::checkRequirements

File

core/modules/simpletest/src/Tests/MissingCheckedRequirementsTest.php, line 35
Contains \Drupal\simpletest\Tests\MissingCheckedRequirementsTest.

Class

MissingCheckedRequirementsTest
Tests a test case with missing requirements.

Namespace

Drupal\simpletest\Tests

Code

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