]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Console/AutomaticInstallationConsoleTest.php
Remove multi profiles feature
[friendica.git] / tests / src / Console / AutomaticInstallationConsoleTest.php
index 774db31746fd5d94f1fa4e629df7c31ea8f24334..ed31661673755ae866053c7a54454cc5a9a7ef78 100644 (file)
@@ -4,13 +4,13 @@ namespace Friendica\Test\src\Console;
 
 use Dice\Dice;
 use Friendica\App;
-use Friendica\BaseObject;
 use Friendica\Console\AutomaticInstallation;
-use Friendica\Core\Config\Cache\ConfigCache;
+use Friendica\Core\Config\Cache;
 use Friendica\Core\Installer;
-use Friendica\Core\L10n\L10n;
+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;
@@ -37,7 +37,7 @@ class AutomaticInstallationConsoleTest extends ConsoleTest
        private $assertFileDb;
 
        /**
-        * @var ConfigCache The configuration cache to check after each test
+        * @var Cache The configuration cache to check after each test
         */
        private $configCache;
 
@@ -77,9 +77,9 @@ class AutomaticInstallationConsoleTest extends ConsoleTest
                           ->with(L10n::class)
                           ->andReturn($l10nMock);
 
-               BaseObject::setDependencyInjection($this->dice);
+               DI::init($this->dice);
 
-               $this->configCache = new ConfigCache();
+               $this->configCache = new Cache();
                $this->configCache->set('system', 'basepath', $this->root->url());
                $this->configCache->set('config', 'php_path', trim(shell_exec('which php')));
                $this->configCache->set('system', 'theme', 'smarty3');