public function siteSshCase::testSshMultipleArgsLegacy

8.0.x siteSshTest.php public siteSshCase::testSshMultipleArgsLegacy()
6.x siteSshTest.php public siteSshCase::testSshMultipleArgsLegacy()
7.x siteSshTest.php public siteSshCase::testSshMultipleArgsLegacy()
5.x siteSshTest.php public siteSshCase::testSshMultipleArgsLegacy()
master siteSshTest.php public siteSshCase::testSshMultipleArgsLegacy()

Test drush ssh with multiple arguments (legacy form).

File

tests/siteSshTest.php, line 59

Class

siteSshCase

Code

public function testSshMultipleArgsLegacy() {
  $options = array(
    'simulate' => NULL,
  );
  $this->drush('ssh', array('ls /path1 /path2'), $options, 'user@server/path/to/drupal#sitename', NULL, self::EXIT_SUCCESS, '2>&1');
  $output = $this->getOutput();
  $expected = sprintf('Calling proc_open(ssh -o PasswordAuthentication=no %s@%s \'ls /path1 /path2\');', self::escapeshellarg('user'), self::escapeshellarg('server'));
  $this->assertEquals($expected, $output);
}