]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Console/AutomaticInstallationConsoleTest.php
Merge pull request #12231 from HankG/fix-unfavourite-endpoint
[friendica.git] / tests / src / Console / AutomaticInstallationConsoleTest.php
index fdf887fe6b6975e92110cc327a2c4548bc39723e..a76ae1c06313e1d62f4b9da6b262deac157f0713 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -24,27 +24,23 @@ namespace Friendica\Test\src\Console;
 use Dice\Dice;
 use Friendica\App;
 use Friendica\Console\AutomaticInstallation;
-use Friendica\Core\Config\Cache;
+use Friendica\Core\Config\ValueObject\Cache;
 use Friendica\Core\Installer;
 use Friendica\Core\L10n;
 use Friendica\Core\Logger;
 use Friendica\Database\Database;
 use Friendica\DI;
-use Friendica\Test\Util\DBAMockTrait;
-use Friendica\Test\Util\DBStructureMockTrait;
 use Friendica\Test\Util\RendererMockTrait;
 use Friendica\Test\Util\VFSTrait;
-use Friendica\Util\Logger\VoidLogger;
 use Mockery;
 use Mockery\MockInterface;
 use org\bovigo\vfs\vfsStream;
 use org\bovigo\vfs\vfsStreamFile;
+use Psr\Log\NullLogger;
 
 class AutomaticInstallationConsoleTest extends ConsoleTest
 {
        use VFSTrait;
-       use DBAMockTrait;
-       use DBStructureMockTrait;
        use RendererMockTrait;
 
        /**
@@ -57,7 +53,7 @@ class AutomaticInstallationConsoleTest extends ConsoleTest
        private $assertFileDb;
 
        /**
-        * @var Cache The configuration cache to check after each test
+        * @var \Friendica\Core\Config\ValueObject\Cache The configuration cache to check after each test
         */
        private $configCache;
 
@@ -76,7 +72,7 @@ class AutomaticInstallationConsoleTest extends ConsoleTest
         */
        private $dice;
 
-       public function setUp()
+       public function setUp() : void
        {
                static::markTestSkipped('Needs class \'Installer\' as constructing argument for console tests');
 
@@ -121,7 +117,7 @@ class AutomaticInstallationConsoleTest extends ConsoleTest
                });
 
                $this->mode->shouldReceive('isInstall')->andReturn(true);
-               Logger::init(new VoidLogger());
+               Logger::init(new NullLogger());
        }
 
        /**