mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-20 02:11:36 +00:00
21 lines
418 B
PHP
21 lines
418 B
PHP
<?php
|
|
|
|
namespace Tests\Unit\SSHCommands\System;
|
|
|
|
use App\SSHCommands\System\ReadSshKeyCommand;
|
|
use Tests\TestCase;
|
|
|
|
class ReadSshKeyCommandTest extends TestCase
|
|
{
|
|
public function test_generate_command()
|
|
{
|
|
$command = new ReadSshKeyCommand('name');
|
|
|
|
$expected = <<<'EOD'
|
|
cat ~/.ssh/name.pub
|
|
EOD;
|
|
|
|
$this->assertStringContainsString($expected, $command->content());
|
|
}
|
|
}
|