]> 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 d434674061ebba013c3c82786142390d8401b733..b3418c20f4024878c9999ebf9f6d908d6374335b 100644 (file)
@@ -9,7 +9,8 @@ use Friendica\App;
 use Friendica\Database\DBA;
 use Friendica\Factory;
 use Friendica\Util\BasePath;
-use Friendica\Util\Config\ConfigCacheLoader;
+use Friendica\Util\Config\ConfigFileLoader;
+use Friendica\Util\Logger\VoidLogger;
 use Friendica\Util\Profiler;
 use PHPUnit\DbUnit\DataSet\YamlDataSet;
 use PHPUnit\DbUnit\TestCaseTrait;
@@ -43,15 +44,15 @@ abstract class DatabaseTest extends MockedTest
 
                $basePath = BasePath::create(dirname(__DIR__));
                $mode = new App\Mode($basePath);
-               $configLoader = new ConfigCacheLoader($basePath, $mode);
+               $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'),