mirror of
https://github.com/friendica/friendica
synced 2024-11-10 03:02:54 +00:00
Fix test
This commit is contained in:
parent
71c7669066
commit
7ec4d42461
1 changed files with 2 additions and 1 deletions
|
@ -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());
|
||||||
|
|
Loading…
Reference in a new issue