diff --git a/src/Command/Remote/AliasListCommand.php b/src/Command/Remote/AliasListCommand.php index 2512c8714..aaf1f4cbf 100644 --- a/src/Command/Remote/AliasListCommand.php +++ b/src/Command/Remote/AliasListCommand.php @@ -39,6 +39,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int 'Application', 'Environment Alias', 'Environment UUID', + 'SSH URL', ]); $siteId = $customerApplication->hosting->id; @@ -51,6 +52,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $customerApplication->name, $alias, $environment->uuid, + $environment->sshUrl, ]); } diff --git a/tests/phpunit/src/Commands/Remote/AliasesListCommandTest.php b/tests/phpunit/src/Commands/Remote/AliasesListCommandTest.php index dbd0f7cd9..3b19be634 100644 --- a/tests/phpunit/src/Commands/Remote/AliasesListCommandTest.php +++ b/tests/phpunit/src/Commands/Remote/AliasesListCommandTest.php @@ -37,6 +37,8 @@ public function testRemoteAliasesListCommand(): void // Assert. $output = $this->getDisplay(); - $this->assertStringContainsString('| Sample application 1 | devcloud2.dev | 24-a47ac10b-58cc-4372-a567-0e02b2c3d470 |', $output); + $this->assertStringContainsString('| Application | Environment Alias | Environment UUID | SSH URL', $output); + + $this->assertStringContainsString('| Sample application 1 | devcloud2.dev | 24-a47ac10b-58cc-4372-a567-0e02b2c3d470 | site.dev@sitedev.ssh.hosted.acquia-sites.com', $output); } }