mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-20 10:21:37 +00:00
21 lines
452 B
PHP
21 lines
452 B
PHP
<?php
|
|
|
|
namespace Tests\Feature\SSHCommands\System;
|
|
|
|
use App\SSHCommands\System\DeleteSshKeyCommand;
|
|
use Tests\TestCase;
|
|
|
|
class DeleteSshKeyCommandTest extends TestCase
|
|
{
|
|
public function test_generate_command()
|
|
{
|
|
$command = new DeleteSshKeyCommand('key');
|
|
|
|
$expected = <<<'EOD'
|
|
sudo sed -i 's/key//g' ~/.ssh/authorized_keys
|
|
EOD;
|
|
|
|
$this->assertStringContainsString($expected, $command->content());
|
|
}
|
|
}
|