public function testCreateConfigWithCustomCacheDir()
{
$cacheDir = $this->getNewTmpDirectory('gush-cache');
putenv('GUSH_CACHE_DIR=' . $cacheDir);
$config = ConfigFactory::createConfig();
$this->assertFileExists($cacheDir . '/.htaccess');
$this->assertFileExists($this->homedir . '/.htaccess');
$this->assertEquals(['adapters' => [], 'home' => $this->homedir, 'home_config' => $this->homedir . '/.gush.yml'], $config->toArray());
}