mirror of
https://github.com/friendica/friendica
synced 2025-04-24 00:30:11 +00:00
Adding basepath, urlpath, hostname and ssl_policy to installation
This commit is contained in:
parent
19f474f50d
commit
90a38a00d8
20 changed files with 380 additions and 127 deletions
|
@ -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/');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue