public function testDumpConfigToSystemFile()
{
$config = ConfigFactory::createConfig();
$this->assertFileExists($this->homedir . '/cache/.htaccess');
$this->assertFileExists($this->homedir . '/.htaccess');
$this->assertFileNotExists($this->homedir . '/.gush.yml');
ConfigFactory::dumpToFile($config, Config::CONFIG_SYSTEM);
$this->assertFileExists($this->homedir . '/.gush.yml');
$this->assertEquals(['adapters' => []], Yaml::parse(file_get_contents($this->homedir . '/.gush.yml')));
}