diff --git a/src/Helpers/SshHelper.php b/src/Helpers/SshHelper.php index 8a9759117..eb49dd4ee 100644 --- a/src/Helpers/SshHelper.php +++ b/src/Helpers/SshHelper.php @@ -59,7 +59,6 @@ public function executeCommand(EnvironmentResponse|string $target, array $comman private function sendCommand(?string $url, array $command, bool $printOutput, ?int $timeout = NULL): Process { $command = array_values($this->getSshCommand($url, $command)); - $this->localMachineHelper->checkRequiredBinariesExist(['ssh']); return $this->localMachineHelper->execute($command, $this->getOutputCallback(), NULL, $printOutput, $timeout); } diff --git a/tests/phpunit/src/Commands/Remote/DrushCommandTest.php b/tests/phpunit/src/Commands/Remote/DrushCommandTest.php index 83ac85907..2c046e0e4 100644 --- a/tests/phpunit/src/Commands/Remote/DrushCommandTest.php +++ b/tests/phpunit/src/Commands/Remote/DrushCommandTest.php @@ -50,7 +50,6 @@ public function testRemoteDrushCommand(array $args): void { ClearCacheCommand::clearCaches(); $this->mockForGetEnvironmentFromAliasArg(); [$process, $localMachineHelper] = $this->mockForExecuteCommand(); - $localMachineHelper->checkRequiredBinariesExist(['ssh'])->shouldBeCalled(); $sshCommand = [ 'ssh', 'site.dev@sitedev.ssh.hosted.acquia-sites.com', diff --git a/tests/phpunit/src/Commands/Remote/SshCommandTest.php b/tests/phpunit/src/Commands/Remote/SshCommandTest.php index 9cf2db766..57139239e 100644 --- a/tests/phpunit/src/Commands/Remote/SshCommandTest.php +++ b/tests/phpunit/src/Commands/Remote/SshCommandTest.php @@ -26,7 +26,6 @@ public function testRemoteAliasesDownloadCommand(): void { ClearCacheCommand::clearCaches(); $this->mockForGetEnvironmentFromAliasArg(); [$process, $localMachineHelper] = $this->mockForExecuteCommand(); - $localMachineHelper->checkRequiredBinariesExist(['ssh'])->shouldBeCalled(); $sshCommand = [ 'ssh', 'site.dev@sitedev.ssh.hosted.acquia-sites.com',