]> git.mxchange.org Git - friendica.git/commitdiff
Fix test
authorPhilipp <admin@philipp.info>
Sun, 23 Jan 2022 19:29:46 +0000 (20:29 +0100)
committerPhilipp <admin@philipp.info>
Sun, 23 Jan 2022 19:29:46 +0000 (20:29 +0100)
tests/src/Core/Storage/Repository/StorageManagerTest.php

index 6e36821892cd00b50bdd1989b1c98d3d071e016d..a366dca9c242dbf7420418fdb9c987f210bbb345 100644 (file)
@@ -22,6 +22,7 @@
 namespace Friendica\Test\src\Core\Storage\Repository;
 
 use Dice\Dice;
+use Friendica\App\Mode;
 use Friendica\Core\Config\Capability\IManageConfigValues;
 use Friendica\Core\Config\Type\PreloadConfig;
 use Friendica\Core\Hook;
@@ -86,7 +87,7 @@ class StorageManagerTest extends DatabaseTest
 
                $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->set('storage', 'name', 'Database');
                $this->config->set('storage', 'filesystem_path', $this->root->getChild(Type\FilesystemConfig::DEFAULT_BASE_FOLDER)->url());