X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fsrc%2FDatabase%2FDBStructureTest.php;h=ec1531783e72595c6eb1b3532ee85adc86cc9c71;hb=d6d31f43a1a4d55ce56c1945b2c6b5b5a8728ee0;hp=53c4e8895b2dac1afe52cea59b6d5ffa29af7f49;hpb=75728430832633407c78a49d47481e97bbd9e00e;p=friendica.git diff --git a/tests/src/Database/DBStructureTest.php b/tests/src/Database/DBStructureTest.php index 53c4e8895b..ec1531783e 100644 --- a/tests/src/Database/DBStructureTest.php +++ b/tests/src/Database/DBStructureTest.php @@ -1,33 +1,31 @@ app = new App($config, $logger, false); - $this->logOutput = FActory\LoggerFactory::enableTest($this->app->getLogger()); + $basePath = BasePath::create(dirname(__DIR__) . '/../../'); + $mode = new App\Mode($basePath); + $router = new App\Router(); + $configLoader = new ConfigFileLoader($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($config, $mode, $router, $logger, $profiler, false); parent::setUp(); - - // Default config - Config::set('config', 'hostname', 'localhost'); - Config::set('system', 'throttle_limit_day', 100); - Config::set('system', 'throttle_limit_week', 100); - Config::set('system', 'throttle_limit_month', 100); - Config::set('system', 'theme', 'system_theme'); } /**