From 5116969393d79f49ce33b34ff216825ea9a09e22 Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Wed, 13 Dec 2023 11:22:04 -0800 Subject: [PATCH] CLI-1130: Workaround for broken Drush SQL import --- src/Helpers/SshHelper.php | 1 - tests/phpunit/src/Commands/Remote/DrushCommandTest.php | 1 - tests/phpunit/src/Commands/Remote/SshCommandTest.php | 1 - 3 files changed, 3 deletions(-) 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',