mirror of
https://github.com/friendica/friendica
synced 2025-04-27 03:10:12 +00:00
Add testmode
This commit is contained in:
parent
6272b8d4e0
commit
434ce00d19
2 changed files with 10 additions and 0 deletions
|
@ -34,6 +34,7 @@ use Friendica\Factory\ConfigFactory;
|
|||
use Friendica\Model\Config\Config;
|
||||
use Friendica\Model\Storage;
|
||||
use Friendica\Core\Session;
|
||||
use Friendica\Database\DBStructure;
|
||||
use Friendica\Test\DatabaseTest;
|
||||
use Friendica\Test\Util\Database\StaticDatabase;
|
||||
use Friendica\Test\Util\VFSTrait;
|
||||
|
@ -74,6 +75,10 @@ class StorageManagerTest extends DatabaseTest
|
|||
|
||||
$this->dba = new StaticDatabase($configCache, $profiler, $this->logger);
|
||||
|
||||
$this->dba->setTestmode(true);
|
||||
|
||||
DBStructure::checkInitialValues();
|
||||
|
||||
$configModel = new Config($this->dba);
|
||||
$this->config = new PreloadConfig($configCache, $configModel);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue