This commit is contained in:
Philipp 2022-01-23 20:29:46 +01:00
parent 71c7669066
commit 7ec4d42461
No known key found for this signature in database
GPG Key ID: 24A7501396EB5432

View File

@ -22,6 +22,7 @@
namespace Friendica\Test\src\Core\Storage\Repository; namespace Friendica\Test\src\Core\Storage\Repository;
use Dice\Dice; use Dice\Dice;
use Friendica\App\Mode;
use Friendica\Core\Config\Capability\IManageConfigValues; use Friendica\Core\Config\Capability\IManageConfigValues;
use Friendica\Core\Config\Type\PreloadConfig; use Friendica\Core\Config\Type\PreloadConfig;
use Friendica\Core\Hook; use Friendica\Core\Hook;
@ -86,7 +87,7 @@ class StorageManagerTest extends DatabaseTest
$this->dba = new StaticDatabase($configCache, $profiler, $this->logger); $this->dba = new StaticDatabase($configCache, $profiler, $this->logger);
$configModel = new Repository\Config($this->dba); $configModel = new Repository\Config($this->dba, new Mode(Mode::DBCONFIGAVAILABLE));
$this->config = new PreloadConfig($configCache, $configModel); $this->config = new PreloadConfig($configCache, $configModel);
$this->config->set('storage', 'name', 'Database'); $this->config->set('storage', 'name', 'Database');
$this->config->set('storage', 'filesystem_path', $this->root->getChild(Type\FilesystemConfig::DEFAULT_BASE_FOLDER)->url()); $this->config->set('storage', 'filesystem_path', $this->root->getChild(Type\FilesystemConfig::DEFAULT_BASE_FOLDER)->url());