From: Philipp Holzer Date: Sun, 14 Jul 2019 20:19:16 +0000 (+0200) Subject: bugfix: add lost changes due merge X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d384663b3940e4ce751f5d271373440c8a5cd3c7;p=friendica.git bugfix: add lost changes due merge --- diff --git a/tests/include/ApiTest.php b/tests/include/ApiTest.php index 17b7469fa1..5ae4bdff50 100644 --- a/tests/include/ApiTest.php +++ b/tests/include/ApiTest.php @@ -12,9 +12,7 @@ use Friendica\Core\Protocol; use Friendica\Core\System; use Friendica\Factory; use Friendica\Network\HTTPException; -use Friendica\Util\BasePath; use Friendica\Util\BaseURL; -use Friendica\Util\Config\ConfigFileLoader; use Monolog\Handler\TestHandler; require_once __DIR__ . '/../../include/api.php'; @@ -51,7 +49,7 @@ class ApiTest extends DatabaseTest { $configModel = new \Friendica\Model\Config\Config(self::$dba); $config = Factory\ConfigFactory::createConfig(self::$configCache, $configModel); - Factory\ConfigFactory::createPConfig(new Config\Cache\PConfigCache()); + Factory\ConfigFactory::createPConfig(self::$configCache, new Config\Cache\PConfigCache()); $logger = Factory\LoggerFactory::create('test', self::$dba, $config, self::$profiler); $baseUrl = new BaseURL($config, $_SERVER); $router = new App\Router(); diff --git a/tests/src/Database/DBATest.php b/tests/src/Database/DBATest.php index 24f723e5a0..852db4498f 100644 --- a/tests/src/Database/DBATest.php +++ b/tests/src/Database/DBATest.php @@ -14,7 +14,7 @@ class DBATest extends DatabaseTest { $configModel = new \Friendica\Model\Config\Config(self::$dba); $config = Factory\ConfigFactory::createConfig(self::$configCache, $configModel); - Factory\ConfigFactory::createPConfig(new Config\Cache\PConfigCache()); + Factory\ConfigFactory::createPConfig(self::$configCache, new Config\Cache\PConfigCache()); $logger = Factory\LoggerFactory::create('test', self::$dba, $config, self::$profiler); $baseUrl = new BaseURL($config, $_SERVER); $router = new App\Router(); diff --git a/tests/src/Database/DBStructureTest.php b/tests/src/Database/DBStructureTest.php index 51707873cb..d10f07493b 100644 --- a/tests/src/Database/DBStructureTest.php +++ b/tests/src/Database/DBStructureTest.php @@ -6,16 +6,20 @@ use Friendica\App; use Friendica\Core\Config\Cache\PConfigCache; use Friendica\Database\DBStructure; use Friendica\Factory; +use Friendica\Model\Config\Config; use Friendica\Test\DatabaseTest; use Friendica\Util\BaseURL; class DBStructureTest extends DatabaseTest { + /** + * @throws \Friendica\Network\HTTPException\InternalServerErrorException + */ public function setUp() { - $configModel = new \Friendica\Model\Config\Config(self::$dba); + $configModel = new Config(self::$dba); $config = Factory\ConfigFactory::createConfig(self::$configCache, $configModel); - Factory\ConfigFactory::createPConfig(new PConfigCache()); + Factory\ConfigFactory::createPConfig(self::$configCache, new PConfigCache()); $logger = Factory\LoggerFactory::create('test', self::$dba, $config, self::$profiler); $baseUrl = new BaseURL($config, $_SERVER); $router = new App\Router();