mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-20 10:21:37 +00:00
23 lines
469 B
PHP
23 lines
469 B
PHP
<?php
|
|
|
|
namespace Tests\Unit\SSHCommands\Service;
|
|
|
|
use App\SSHCommands\Service\StopServiceCommand;
|
|
use Tests\TestCase;
|
|
|
|
class StopServiceCommandTest extends TestCase
|
|
{
|
|
public function test_generate_command()
|
|
{
|
|
$command = new StopServiceCommand('nginx');
|
|
|
|
$expected = <<<'EOD'
|
|
sudo service nginx stop
|
|
|
|
sudo service nginx status | cat
|
|
EOD;
|
|
|
|
$this->assertStringContainsString($expected, $command->content());
|
|
}
|
|
}
|