adding parameter to App

This commit is contained in:
Philipp Holzer 2019-02-16 23:19:54 +01:00
parent cb1ad4287d
commit 68c904bbf4
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
3 changed files with 6 additions and 3 deletions

View file

@ -39,7 +39,8 @@ class ApiTest extends DatabaseTest
$configLoader = new Config\ConfigCacheLoader($basedir);
$config = Factory\ConfigFactory::createCache($configLoader);
$logger = Factory\LoggerFactory::create('test', $config);
$this->app = new App($config, $logger, false);
$profiler = Factory\ProfilerFactory::create($logger, $config);
$this->app = new App($config, $logger, $profiler, false);
$this->logOutput = FActory\LoggerFactory::enableTest($this->app->getLogger());
parent::setUp();

View file

@ -16,7 +16,8 @@ class DBATest extends DatabaseTest
$configLoader = new Config\ConfigCacheLoader($basedir);
$config = Factory\ConfigFactory::createCache($configLoader);
$logger = Factory\LoggerFactory::create('test', $config);
$this->app = new App($config, $logger, false);
$profiler = Factory\ProfilerFactory::create($logger, $config);
$this->app = new App($config, $logger, $profiler, false);
$this->logOutput = FActory\LoggerFactory::enableTest($this->app->getLogger());
parent::setUp();

View file

@ -17,7 +17,8 @@ class DBStructureTest extends DatabaseTest
$configLoader = new Config\ConfigCacheLoader($basedir);
$config = Factory\ConfigFactory::createCache($configLoader);
$logger = Factory\LoggerFactory::create('test', $config);
$this->app = new App($config, $logger, false);
$profiler = Factory\ProfilerFactory::create($logger, $config);
$this->app = new App($config, $logger, $profiler, false);
$this->logOutput = FActory\LoggerFactory::enableTest($this->app->getLogger());
parent::setUp();