4 use \Drush\Config\Environment;
8 protected function fixturesDir()
10 return dirname(__DIR__) . '/fixtures';
13 protected function homeDir()
15 return $this->fixturesDir() . '/home';
18 // It is still an aspirational goal to add Drupal 7 support back to Drush. :P
19 // For now, only Drupal 8 is supported.
20 protected function siteDir($majorVersion = '8')
22 return $this->fixturesDir() . '/sites/d' . $majorVersion;
25 protected function environment($cwd = false)
27 $fixturesDir = $this->fixturesDir();
28 $home = $this->homeDir();
32 $autoloadFile = dirname(__DIR__) . '/vendor/autoload.php';
34 $environment = new Environment($home, $cwd, $autoloadFile);
36 ->setEtcPrefix($fixturesDir)
37 ->setSharePrefix($fixturesDir . '/usr');