/**
  * Saves a configuration file.
  *
  * The configuration file is saved to the same path that it was read from.
  *
  * @param ConfigFile $configFile The configuration file to save.
  *
  * @throws IOException If the file cannot be written.
  */
 public function saveConfigFile(ConfigFile $configFile)
 {
     $this->writer->writeConfigFile($configFile, $configFile->getPath());
     if ($this->factoryManager) {
         $this->factoryManager->autoGenerateFactoryClass();
     }
 }
 public function testSaveConfigFile()
 {
     $configFile = new ConfigFile('/path');
     $this->writer->expects($this->once())->method('writeConfigFile')->with($configFile, '/path');
     $this->storage->saveConfigFile($configFile);
 }