function MissingCheckedRequirementsTest::checkRequirements

Overrides checkRequirements().

Overrides TestBase::checkRequirements

File

core/modules/simpletest/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();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.