function contextCase::setUpPaths

8.0.x contextTest.php contextCase::setUpPaths()
6.x contextTest.php contextCase::setUpPaths()
7.x contextTest.php contextCase::setUpPaths()
4.x contextTest.php contextCase::setUpPaths()
5.x contextTest.php contextCase::setUpPaths()
master contextTest.php contextCase::setUpPaths()
1 call to contextCase::setUpPaths()
contextCase::setup in tests/contextTest.php
Try to write a tiny drushrc.php to each place that drush checks. Also write a sites/dev/aliases.drushrc.php file to the sandbox.

File

tests/contextTest.php, line 12

Class

contextCase

Code

function setUpPaths() {
  $this->root = $this->sites[$this->env]['root'];
  $this->site = $this->root . '/sites/' . $this->env;
  $this->home = UNISH_SANDBOX . '/home';
  $this->paths = array(
    'custom' => UNISH_SANDBOX,
    'site' => $this->site,
    'drupal' => $this->root,
    'user' => $this->home,
    'home.drush' => $this->home . '/.drush',
    'system' => UNISH_SANDBOX . '/etc/drush',
    // We don't want to write a file into drush dir since it is not in the sandbox. // 'drush' => dirname(realpath(UNISH_DRUSH)),
  );
  // Run each path through realpath() since the paths we'll compare against
  // will have already run through drush_load_config_file().
  foreach ($this->paths as $key => $path) {
    $this->paths[$key] = realpath($path);
  };
}