mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-19 18:01:37 +00:00
25 lines
607 B
PHP
25 lines
607 B
PHP
<?php
|
|
|
|
namespace Tests\Feature\SSHCommands\Installation;
|
|
|
|
use App\SSHCommands\Installation\InstallNodejsCommand;
|
|
use Tests\TestCase;
|
|
|
|
class InstallNodejsCommandTest extends TestCase
|
|
{
|
|
public function test_generate_command()
|
|
{
|
|
$command = new InstallNodejsCommand();
|
|
|
|
$expected = <<<'EOD'
|
|
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -;
|
|
|
|
sudo DEBIAN_FRONTEND=noninteractive apt update
|
|
|
|
sudo DEBIAN_FRONTEND=noninteractive apt install nodejs -y
|
|
EOD;
|
|
|
|
$this->assertStringContainsString($expected, $command->content());
|
|
}
|
|
}
|