]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Core/InstallerTest.php
Add license info at Friendica classes
[friendica.git] / tests / src / Core / InstallerTest.php
index 23212665ddd852b1c918b64217c1825297dffc73..371932caf2110fbd6df2f449494b3107a82c9e28 100644 (file)
@@ -4,7 +4,7 @@
 namespace Friendica\Core;
 
 use Dice\Dice;
-use Friendica\Core\Config\Cache\ConfigCache;
+use Friendica\Core\Config\Cache;
 use Friendica\DI;
 use Friendica\Network\CurlResult;
 use Friendica\Test\MockedTest;
@@ -17,7 +17,7 @@ class InstallerTest extends MockedTest
        use VFSTrait;
 
        /**
-        * @var \Friendica\Core\L10n\L10n|MockInterface
+        * @var \Friendica\Core\L10n|MockInterface
         */
        private $l10nMock;
 
@@ -27,14 +27,14 @@ class InstallerTest extends MockedTest
 
                $this->setUpVfsDir();
 
-               $this->l10nMock = \Mockery::mock(\Friendica\Core\L10n\L10n::class);
+               $this->l10nMock = \Mockery::mock(\Friendica\Core\L10n::class);
 
                /** @var Dice|MockInterface $dice */
                $dice = \Mockery::mock(Dice::class)->makePartial();
                $dice = $dice->addRules(include __DIR__ . '/../../../static/dependencies.config.php');
 
                $dice->shouldReceive('create')
-                          ->with(\Friendica\Core\L10n\L10n::class)
+                          ->with(\Friendica\Core\L10n::class)
                           ->andReturn($this->l10nMock);
 
                DI::init($dice);
@@ -419,7 +419,7 @@ class InstallerTest extends MockedTest
                $this->l10nMock->shouldReceive('t')->andReturnUsing(function ($args) { return $args; });
 
                $install = new Installer();
-               $configCache = \Mockery::mock(ConfigCache::class);
+               $configCache = \Mockery::mock(Cache::class);
                $configCache->shouldReceive('set')->with('config', 'php_path', \Mockery::any())->once();
                $configCache->shouldReceive('set')->with('system', 'basepath', '/test/')->once();