X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fsrc%2FCore%2FInstallerTest.php;h=a238bf8e7d9389383ef0bc3738163c2a694d0978;hb=5cf5274f5182beeaa3bc808c42ca2a3daf98af1b;hp=e56596c6c090b67fc0574d9c0041d74723173da9;hpb=fa5525d0848af855ff770b206d9ff85911128a5d;p=friendica.git diff --git a/tests/src/Core/InstallerTest.php b/tests/src/Core/InstallerTest.php index e56596c6c0..a238bf8e7d 100644 --- a/tests/src/Core/InstallerTest.php +++ b/tests/src/Core/InstallerTest.php @@ -3,6 +3,7 @@ // this is in the same namespace as Install for mocking 'function_exists' namespace Friendica\Core; +use Friendica\Core\Config\Cache\IConfigCache; use Friendica\Network\CurlResult; use Friendica\Object\Image; use Friendica\Test\MockedTest; @@ -392,6 +393,21 @@ class InstallerTest extends MockedTest false, $install->getChecks()); } + + /** + * Test the setup of the config cache for installation + */ + public function testSetUpCache() + { + $this->mockL10nT(); + + $install = new Installer(); + $configCache = \Mockery::mock(IConfigCache::class); + $configCache->shouldReceive('set')->with('config', 'php_path', \Mockery::any())->once(); + $configCache->shouldReceive('set')->with('system', 'basepath', '/test/')->once(); + + $install->setUpCache($configCache, '/test/'); + } } /**