mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-20 10:21:37 +00:00
25 lines
569 B
PHP
25 lines
569 B
PHP
<?php
|
|
|
|
namespace Tests\Feature\SSHCommands\Supervisor;
|
|
|
|
use App\SSHCommands\Supervisor\InstallSupervisorCommand;
|
|
use Tests\TestCase;
|
|
|
|
class InstallSupervisorCommandTest extends TestCase
|
|
{
|
|
public function test_generate_command()
|
|
{
|
|
$command = new InstallSupervisorCommand();
|
|
|
|
$expected = <<<'EOD'
|
|
sudo DEBIAN_FRONTEND=noninteractive apt-get install supervisor -y
|
|
|
|
sudo service supervisor enable
|
|
|
|
sudo service supervisor start
|
|
EOD;
|
|
|
|
$this->assertStringContainsString($expected, $command->content());
|
|
}
|
|
}
|