diff --git a/tests/unit_tests/Commands/Remote/SSHBaseCommandTest.php b/tests/unit_tests/Commands/Remote/SSHBaseCommandTest.php index ba948b285..4e0a8f4ae 100644 --- a/tests/unit_tests/Commands/Remote/SSHBaseCommandTest.php +++ b/tests/unit_tests/Commands/Remote/SSHBaseCommandTest.php @@ -139,6 +139,18 @@ public function testExecuteCommandNonzeroStatus() $out = $this->command->dummyCommand("$site_name.{$this->environment->id}", $options); $this->assertNull($out); + $this->logger->expects($this->once()) + ->method('log') + ->with( + $this->equalTo('error'), + $this->equalTo('Command: {site}.{env} -- {command} [Exit: {exit}] (All attempts failed)'), + $this->equalTo([ + 'site' => $site_name, + 'env' => $this->environment->id, + 'command' => "$expectedLoggedCommand", + 'exit' => $status_code, + ]) + ); } /**