public function saCase::testSAList

8.0.x siteAliasTest.php public saCase::testSAList()
6.x siteAliasTest.php public saCase::testSAList()
7.x siteAliasTest.php public saCase::testSAList()
4.x siteAliasTest.php public saCase::testSAList()
5.x siteAliasTest.php public saCase::testSAList()
master siteAliasTest.php public saCase::testSAList()

File

tests/siteAliasTest.php, line 13

Class

saCase

Code

public function testSAList() {
  $this->setUpDrupal('dev');
  $this->setUpDrupal('stage');
  $eval = 'print "bon";';
  $options = array(
    'yes' => NULL,
    'root' => $this->sites['dev']['root'],
  );
  $this->drush('php-eval', array($eval), $options, "#dev,#stage");
  $expected = "You are about to execute 'php-eval print \"bon\";' on all of the following targets:
  #dev
  #stage
Continue?  (y/n): y
#dev   >> bon
#stage >> bon";
  $this->assertEquals($expected, $this->getOutput());
}