function UnishTestCase::writeSiteAlias

8.0.x UnishTestCase.php UnishTestCase::writeSiteAlias($name, $root, $uri)
7.x UnishTestCase.php UnishTestCase::writeSiteAlias($name, $root, $uri)
master UnishTestCase.php UnishTestCase::writeSiteAlias($name, $root, $uri)
1 call to UnishTestCase::writeSiteAlias()

File

tests/Unish/UnishTestCase.php, line 363

Namespace

Unish

Class

UnishTestCase

Code

function writeSiteAlias($name, $root, $uri) {
  $alias_definition = array($name => array(
    'root' => $root,
    'uri' => $uri,
  ));
  file_put_contents(UNISH_SANDBOX . '/etc/drush/' . $name . '.alias.drushrc.php', $this->unish_file_aliases($alias_definition));
}