mirror of
https://github.com/friendica/friendica
synced 2025-04-27 05:10:10 +00:00
Fix loading empty node.config.php
This commit is contained in:
parent
91bd03a75f
commit
0429a4e429
2 changed files with 28 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue