Beispiel #1
0
 /**
  * @covers ::amendAndValidateConfig
  */
 public function test_amendAndValidateConfig()
 {
     // Given
     vfsStream::newDirectory('tmp')->at($this->vfsRoot);
     $cfgFile = vfsStream::newFile('db_config.json')->withContent(self::getFixtureRawData('db_config.json'))->at($this->vfsRoot)->url();
     $config = $this->cmd->readConfigFile($cfgFile);
     // When
     $configGot = $this->cmd->amendAndValidateConfig($config);
     // Then
     $this->assertSame('tmp/schema.php', $config[Schema::CONFIG_KEY_OUTPUT_FILE]);
     $this->assertSame('vfs://root/tmp/schema.php', $configGot[Schema::CONFIG_KEY_OUTPUT_FILE]);
 }