From 68c904bbf4977283b7083f411064bcf4b315a124 Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Sat, 16 Feb 2019 23:19:54 +0100 Subject: [PATCH] adding parameter to App --- tests/include/ApiTest.php | 3 ++- tests/src/Database/DBATest.php | 3 ++- tests/src/Database/DBStructureTest.php | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/include/ApiTest.php b/tests/include/ApiTest.php index be70d923bd..41f5c0fdf1 100644 --- a/tests/include/ApiTest.php +++ b/tests/include/ApiTest.php @@ -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(); diff --git a/tests/src/Database/DBATest.php b/tests/src/Database/DBATest.php index f2a5cc5558..c6981a91d9 100644 --- a/tests/src/Database/DBATest.php +++ b/tests/src/Database/DBATest.php @@ -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(); diff --git a/tests/src/Database/DBStructureTest.php b/tests/src/Database/DBStructureTest.php index bc50a0a691..250df06936 100644 --- a/tests/src/Database/DBStructureTest.php +++ b/tests/src/Database/DBStructureTest.php @@ -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(); -- 2.39.5