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

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