public function testCreateAliasesMultiApp()
{
// Set up file structure.
$testDir = $this->createTempSubDir();
$fsHelper = new FilesystemHelper();
$fsHelper->copyAll(__DIR__ . '/../data/repositories/multiple', $testDir . '/project/repository');
$projectRoot = $testDir . '/project';
$homeDir = "{$testDir}/home";
mkdir($homeDir);
// Check that aliases are created.
$this->drushHelper->setHomeDir($homeDir);
$this->drushHelper->createAliases($this->project, $projectRoot, $this->environments);
$this->assertFileExists("{$homeDir}/.drush/test.aliases.drushrc.php");
// Check that aliases exist for the 'master' and local environments.
$aliases = [];
include_once "{$homeDir}/.drush/test.aliases.drushrc.php";
// The aliases are the same as for single apps, because there's only one
// Drupal application defined.
$this->assertArrayHasKey('master', $aliases);
$this->assertArrayHasKey('_local', $aliases);
}