]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Core/Console/ConsoleTest.php
Refactoring Logging to use Configuration
[friendica.git] / tests / src / Core / Console / ConsoleTest.php
index 905d214cac2b6282ceb298c5c5a391d3073d0587..f733175d3434bd0cc0d47f06f727225b2997c2b7 100644 (file)
@@ -3,10 +3,12 @@
 namespace Friendica\Test\src\Core\Console;
 
 use Asika\SimpleConsole\Console;
+use Friendica\Core\Config\Configuration;
 use Friendica\Test\MockedTest;
 use Friendica\Test\Util\AppMockTrait;
 use Friendica\Test\Util\Intercept;
 use Friendica\Test\Util\VFSTrait;
+use Friendica\Util\Profiler;
 
 abstract class ConsoleTest extends MockedTest
 {
@@ -29,8 +31,10 @@ abstract class ConsoleTest extends MockedTest
                Intercept::setUp();
 
                $this->setUpVfsDir();
-               $configMock = \Mockery::mock('Friendica\Core\Config\ConfigCache');
+               $configMock = \Mockery::mock(Configuration::class);
                $this->mockApp($this->root, $configMock);
+               $profileMock = \Mockery::mock(Profiler::class);
+               $this->app->shouldReceive('getProfiler')->andReturn($profileMock);
        }
 
        /**