public function siteSshCase::testNonInteractive

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

File

tests/siteSshTest.php, line 33

Class

siteSshCase

Code

public function testNonInteractive() {
  $options = array(
    'simulate' => NULL,
  );
  $this->drush('ssh', array('date'), $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 %s);', self::escapeshellarg('user'), self::escapeshellarg('server'), self::escapeshellarg('date'));
  $this->assertEquals($expected, $output);
}