]> git.mxchange.org Git - friendica.git/commitdiff
adding parameter to App
authorPhilipp Holzer <admin@philipp.info>
Sat, 16 Feb 2019 22:19:54 +0000 (23:19 +0100)
committerPhilipp Holzer <admin@philipp.info>
Sat, 16 Feb 2019 22:19:54 +0000 (23:19 +0100)
tests/include/ApiTest.php
tests/src/Database/DBATest.php
tests/src/Database/DBStructureTest.php

index be70d923bd4866c42e3f084cf4a543cb5ef72f2a..41f5c0fdf1149b7346fcf421756671ce9f7d2743 100644 (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();
index f2a5cc5558f7dcd853a377d2065f905fbe245331..c6981a91d90ae35d42cbabad9bc7a50a930c4aee 100644 (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();
index bc50a0a691aa43cb4cf2121196767be1aa403f60..250df06936744818bc32cd41620255f579e23b7e 100644 (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();