Fix loading empty node.config.php

This commit is contained in:
Philipp 2023-01-08 02:04:25 +01:00
parent 91bd03a75f
commit 0429a4e429
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
2 changed files with 28 additions and 2 deletions

View file

@ -511,4 +511,23 @@ class ConfigFileManagerTest extends MockedTest
self::assertNull($configCache->get('system', 'default_timezone'));
}
/**
* Test for empty node.config.php
*/
public function testEmptyFile()
{
$this->delConfigFile('node.config.php');
vfsStream::newFile('node.config.php')
->at($this->root->getChild('config'))
->setContent('');
$configFileManager = (new Config())->createConfigFileManager($this->root->url());
$configCache = new Cache();
$configFileManager->setupCache($configCache);
self::assertEquals(1,1);
}
}