]> git.mxchange.org Git - friendica.git/blobdiff - tests/DatabaseTest.php
Add themed themed error page or login page for /admin[/*]
[friendica.git] / tests / DatabaseTest.php
index 3ff4c6fe14f529aa00066dc466092ea883e42fe8..b3418c20f4024878c9999ebf9f6d908d6374335b 100644 (file)
@@ -5,10 +5,12 @@
 
 namespace Friendica\Test;
 
-use Friendica\Core\Config\Cache;
+use Friendica\App;
 use Friendica\Database\DBA;
 use Friendica\Factory;
 use Friendica\Util\BasePath;
+use Friendica\Util\Config\ConfigFileLoader;
+use Friendica\Util\Logger\VoidLogger;
 use Friendica\Util\Profiler;
 use PHPUnit\DbUnit\DataSet\YamlDataSet;
 use PHPUnit\DbUnit\TestCaseTrait;
@@ -41,15 +43,16 @@ abstract class DatabaseTest extends MockedTest
                }
 
                $basePath = BasePath::create(dirname(__DIR__));
-               $configLoader = new Cache\ConfigCacheLoader($basePath);
+               $mode = new App\Mode($basePath);
+               $configLoader = new ConfigFileLoader($basePath, $mode);
                $config = Factory\ConfigFactory::createCache($configLoader);
 
                $profiler = \Mockery::mock(Profiler::class);
 
                DBA::connect(
-                       $basePath,
                        $config,
                        $profiler,
+                       new VoidLogger(),
                        getenv('MYSQL_HOST'),
                        getenv('MYSQL_USERNAME'),
                        getenv('MYSQL_PASSWORD'),