X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fsrc%2FDatabase%2FDBATest.php;h=21ccd1df1f9c916db39789c995ffc28fac343c1d;hb=edd4f06ad0084353ba81ba917464bb26e1368a34;hp=e638e2740568ca4978ecda19c8b68ed1193ba85b;hpb=1a2527cdbad5a519e95ceefc9d9874149a7813b4;p=friendica.git diff --git a/tests/src/Database/DBATest.php b/tests/src/Database/DBATest.php index e638e27405..21ccd1df1f 100644 --- a/tests/src/Database/DBATest.php +++ b/tests/src/Database/DBATest.php @@ -3,11 +3,12 @@ namespace Friendica\Test\src\Database; use Friendica\App; use Friendica\Core\Config; -use Friendica\Core\Config\Cache; use Friendica\Database\DBA; use Friendica\Factory; use Friendica\Test\DatabaseTest; use Friendica\Util\BasePath; +use Friendica\Util\BaseURL; +use Friendica\Util\Config\ConfigFileLoader; class DBATest extends DatabaseTest { @@ -15,14 +16,16 @@ class DBATest extends DatabaseTest { $basePath = BasePath::create(dirname(__DIR__) . '/../../'); $mode = new App\Mode($basePath); - $configLoader = new Cache\ConfigCacheLoader($basePath, $mode); + $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($basePath, $config, $mode, $logger, $profiler, false); + $baseUrl = new BaseURL($config, $_SERVER); + $this->app = new App($config, $mode, $router, $baseUrl, $logger, $profiler, false); parent::setUp();