vito/tests/Feature/SSHCommands/System/DeleteSshKeyCommandTest.php
Saeed Vaziry e1eb42059f code style fix
add command tests
2023-09-02 16:41:42 +02:00

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());
}
}