Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function createConfig(array $data, DeploymentConfig $deploymentConfig)
 {
     $configData = [];
     $configData[] = $this->configGenerator->createInstallConfig($deploymentConfig);
     $configData[] = $this->configGenerator->createCryptConfig($data, $deploymentConfig);
     $configData[] = $this->configGenerator->createSessionConfig($data);
     $definitionConfig = $this->configGenerator->createDefinitionsConfig($data);
     if (isset($definitionConfig)) {
         $configData[] = $definitionConfig;
     }
     $configData[] = $this->configGenerator->createDbConfig($data);
     $configData[] = $this->configGenerator->createResourceConfig();
     return $configData;
 }
 public function testCreateSessionConfigWithoutInput()
 {
     $returnValue = $this->configGeneratorObject->createSessionConfig([]);
     $this->assertEquals(ConfigFilePool::APP_ENV, $returnValue->getFileKey());
     $this->assertEquals([], $returnValue->getData());
 }