#389 enforce new configuration file format

This commit is contained in:
Roland Gruber 2025-09-17 20:51:18 +02:00
parent 63636a3cac
commit ec7cc4c8cc

View file

@ -36,6 +36,9 @@ function testCreateDefaultConfig() {
unlink($cfgPath); unlink($cfgPath);
} }
touch($cfgPath); touch($cfgPath);
$fileHandle = fopen($cfgPath, 'w');
fwrite($fileHandle, '{}');
fclose($fileHandle);
$serverProfilePersistenceManager = new ServerProfilePersistenceManager(); $serverProfilePersistenceManager = new ServerProfilePersistenceManager();
$config = $serverProfilePersistenceManager->loadProfile(LAMConfigTest::FILE_NAME); $config = $serverProfilePersistenceManager->loadProfile(LAMConfigTest::FILE_NAME);
$_SESSION['config'] = $config; $_SESSION['config'] = $config;