You are here

protected static function MethodRequires::externalCommandIsAvailable in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/BuildTests/Framework/Tests/ExternalCommandRequirementTest.php \Drupal\BuildTests\Framework\Tests\MethodRequires::externalCommandIsAvailable()
  2. 9 core/tests/Drupal/BuildTests/Framework/Tests/ExternalCommandRequirementTest.php \Drupal\BuildTests\Framework\Tests\MethodRequires::externalCommandIsAvailable()

Determine if an external command is available.

Parameters

$command: The external command.

Return value

bool TRUE if external command is available, else FALSE.

Overrides ExternalCommandRequirementsTrait::externalCommandIsAvailable

File

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

Class

MethodRequires

Namespace

Drupal\BuildTests\Framework\Tests

Code

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