function UsesCommandRequirements::externalCommandIsAvailable

Same name in other branches
  1. 9 core/tests/Drupal/BuildTests/Framework/Tests/ExternalCommandRequirementTest.php \Drupal\BuildTests\Framework\Tests\UsesCommandRequirements::externalCommandIsAvailable()
  2. 8.9.x core/tests/Drupal/BuildTests/Framework/Tests/ExternalCommandRequirementTest.php \Drupal\BuildTests\Framework\Tests\UsesCommandRequirements::externalCommandIsAvailable()

Overrides ExternalCommandRequirementsTrait::externalCommandIsAvailable

File

core/tests/Drupal/BuildTests/Framework/Tests/ExternalCommandRequirementTest.php, line 140

Class

UsesCommandRequirements

Namespace

Drupal\BuildTests\Framework\Tests

Code

protected static function externalCommandIsAvailable($command) {
    return in_array($command, [
        'available_command',
    ]);
}

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