Fix tests (static usage for non-static methods)
This commit is contained in:
parent
a8e6a57e9b
commit
3d93ef9cea
2 changed files with 10 additions and 6 deletions
|
@ -15,10 +15,12 @@ class DBATest extends DatabaseTest
|
||||||
public function setUp()
|
public function setUp()
|
||||||
{
|
{
|
||||||
$configModel = new \Friendica\Model\Config\Config(self::$dba);
|
$configModel = new \Friendica\Model\Config\Config(self::$dba);
|
||||||
$config = Factory\ConfigFactory::createConfig(self::$configCache, $configModel);
|
$configFactory = new Factory\ConfigFactory();
|
||||||
|
$config = $configFactory->createConfig(self::$configCache, $configModel);
|
||||||
$pconfigModel = new \Friendica\Model\Config\PConfig(self::$dba);
|
$pconfigModel = new \Friendica\Model\Config\PConfig(self::$dba);
|
||||||
Factory\ConfigFactory::createPConfig(self::$configCache, new PConfigCache(), $pconfigModel);
|
$configFactory->createPConfig(self::$configCache, new PConfigCache(), $pconfigModel);
|
||||||
$logger = Factory\LoggerFactory::create('test', self::$dba, $config, self::$profiler);
|
$loggerFactory = new Factory\LoggerFactory();
|
||||||
|
$logger = $loggerFactory->create('test', self::$dba, $config, self::$profiler);
|
||||||
$baseUrl = new BaseURL($config, $_SERVER);
|
$baseUrl = new BaseURL($config, $_SERVER);
|
||||||
$router = new App\Router();
|
$router = new App\Router();
|
||||||
$l10n = new L10n($config,
|
$l10n = new L10n($config,
|
||||||
|
|
|
@ -19,10 +19,12 @@ class DBStructureTest extends DatabaseTest
|
||||||
public function setUp()
|
public function setUp()
|
||||||
{
|
{
|
||||||
$configModel = new Config(self::$dba);
|
$configModel = new Config(self::$dba);
|
||||||
$config = Factory\ConfigFactory::createConfig(self::$configCache, $configModel);
|
$configFactory = new Factory\ConfigFactory();
|
||||||
|
$config = $configFactory->createConfig(self::$configCache, $configModel);
|
||||||
$pconfigModel = new \Friendica\Model\Config\PConfig(self::$dba);
|
$pconfigModel = new \Friendica\Model\Config\PConfig(self::$dba);
|
||||||
Factory\ConfigFactory::createPConfig(self::$configCache, new PConfigCache(), $pconfigModel);
|
$configFactory->createPConfig(self::$configCache, new PConfigCache(), $pconfigModel);
|
||||||
$logger = Factory\LoggerFactory::create('test', self::$dba, $config, self::$profiler);
|
$loggerFactory = new Factory\LoggerFactory();
|
||||||
|
$logger = $loggerFactory->create('test', self::$dba, $config, self::$profiler);
|
||||||
$baseUrl = new BaseURL($config, $_SERVER);
|
$baseUrl = new BaseURL($config, $_SERVER);
|
||||||
$router = new App\Router();
|
$router = new App\Router();
|
||||||
$l10n = new L10n($config,
|
$l10n = new L10n($config,
|
||||||
|
|
Loading…
Reference in a new issue