mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-21 19:01:37 +00:00
23 lines
424 B
PHP
23 lines
424 B
PHP
<?php
|
|
|
|
namespace Tests\Feature\SSHCommands\System;
|
|
|
|
use App\SSHCommands\System\RebootCommand;
|
|
use Tests\TestCase;
|
|
|
|
class RebootCommandTest extends TestCase
|
|
{
|
|
public function test_generate_command()
|
|
{
|
|
$command = new RebootCommand();
|
|
|
|
$expected = <<<'EOD'
|
|
echo "Rebooting..."
|
|
|
|
sudo reboot
|
|
EOD;
|
|
|
|
$this->assertStringContainsString($expected, $command->content());
|
|
}
|
|
}
|