mirror of
https://github.com/friendica/friendica
synced 2025-04-24 00:30:11 +00:00
Move AppMode
This commit is contained in:
parent
d03dedee63
commit
1a2527cdba
7 changed files with 49 additions and 31 deletions
|
@ -14,14 +14,15 @@ class DBStructureTest extends DatabaseTest
|
|||
public function setUp()
|
||||
{
|
||||
$basePath = BasePath::create(dirname(__DIR__) . '/../../');
|
||||
$configLoader = new Cache\ConfigCacheLoader($basePath);
|
||||
$mode = new App\Mode($basePath);
|
||||
$configLoader = new Cache\ConfigCacheLoader($basePath, $mode);
|
||||
$configCache = Factory\ConfigFactory::createCache($configLoader);
|
||||
$profiler = Factory\ProfilerFactory::create($configCache);
|
||||
Factory\DBFactory::init($basePath, $configCache, $profiler, $_SERVER);
|
||||
$config = Factory\ConfigFactory::createConfig($configCache);
|
||||
Factory\ConfigFactory::createPConfig($configCache);
|
||||
$logger = Factory\LoggerFactory::create('test', $config, $profiler);
|
||||
$this->app = new App($basePath, $config, $logger, $profiler, false);
|
||||
$this->app = new App($basePath, $config, $mode, $logger, $profiler, false);
|
||||
|
||||
parent::setUp();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue