Database::
addConnectionInfo('default', 'default',
$this->
getDatabaseConnectionInfo()['default'
]);
} /**
* Sets up the filesystem, so things like the file directory.
*/
protected function setUpFilesystem() { $test_db =
new TestDatabase($this->databasePrefix
);
$test_site_path =
$test_db->
getTestSitePath();
$this->vfsRoot = vfsStream::
setup('root'
);
$this->vfsRoot->
addChild(vfsStream::
newDirectory($test_site_path));
$this->siteDirectory = vfsStream::
url('root/' .
$test_site_path);
mkdir($this->siteDirectory . '/files', 0775
);
mkdir($this->siteDirectory . '/files/config/sync', 0775, TRUE
);
$settings = Settings::
getInstance() ? Settings::
getAll() :
[];
$settings['file_public_path'
] =
$this->siteDirectory . '/files';
$settings['config_sync_directory'
] =
$this->siteDirectory . '/files/config/sync';
new Settings($settings);
}