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';
{
$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();
{
$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();
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();