first import
This commit is contained in:
30
sites/all/modules/drush/tests/siteAliasTest.php
Normal file
30
sites/all/modules/drush/tests/siteAliasTest.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* @file
|
||||
* Tests for sitealias.inc
|
||||
*/
|
||||
class saCase extends Drush_TestCase {
|
||||
|
||||
/*
|
||||
* Assure that site lists work as expected.
|
||||
* @todo Use --backend for structured return data. Depends on http://drupal.org/node/1043922
|
||||
*/
|
||||
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());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user