improve configurations for usage in multi-environment setups (#1775)

This commit is contained in:
Kevin Papst
2020-06-11 01:26:57 +02:00
committed by GitHub
parent 57b4473bc8
commit 21d8e8bbb8
17 changed files with 66 additions and 65 deletions

View File

@@ -54,10 +54,12 @@ class ConfigurationTest extends TestCase
public function testValidatePluginDir()
{
$this->expectException(InvalidConfigurationException::class);
$this->expectExceptionMessage('Invalid configuration for path "kimai.plugin_dir": Plugin directory does not exist');
$finalizedConfig = $this->getCompiledConfig($this->getMinConfig());
$finalizedConfig['plugin_dir'] = 'sdfsdfs';
$this->assertConfig($this->getMinConfig('/tmp/', 'sdfsdfs'), []);
$config = $this->getMinConfig('/tmp/', 'sdfsdfs');
$this->assertConfig($config, $finalizedConfig);
}
public function testValidateLdapConfigUserBaseDn()