mirror of
https://github.com/vitodeploy/vito.git
synced 2025-06-30 21:46:16 +00:00
fix notification chanels and more tests (#108)
* fix notification chanels and more tests * fix code style
This commit is contained in:
20
tests/Unit/SSHCommands/System/ReadSshKeyCommandTest.php
Normal file
20
tests/Unit/SSHCommands/System/ReadSshKeyCommandTest.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?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());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user