*/
public function testCheckKeys()
{
+ $this->mockL10nT();
+
$this->setFunctions(['openssl_pkey_new' => false]);
$install = new Installer();
$this->assertFalse($install->checkKeys());
*/
public function testCheckLocalIni()
{
+ $this->mockL10nT();
+
$this->assertTrue($this->root->hasChild('config/local.config.php'));
$install = new Installer();
*/
public function testCheckHtAccessFail()
{
+ $this->mockL10nT();
+
// Mocking the CURL Response
$curlResult = \Mockery::mock('Friendica\Network\CurlResult');
$curlResult
// Mocking that we can use CURL
$this->setFunctions(['curl_init' => true]);
- // needed because of "normalise_link"
- require_once __DIR__ . '/../../../include/text.php';
-
$install = new Installer();
$this->assertFalse($install->checkHtAccess('https://test'));
*/
public function testCheckHtAccessWork()
{
+ $this->mockL10nT();
+
// Mocking the failed CURL Response
$curlResultF = \Mockery::mock('Friendica\Network\CurlResult');
$curlResultF
*/
public function testImagick()
{
+ $this->mockL10nT();
+
$imageMock = \Mockery::mock('alias:Friendica\Object\Image');
$imageMock
->shouldReceive('supportedTypes')
*/
public function testImagickNotFound()
{
+ $this->mockL10nT();
+
$imageMock = \Mockery::mock('alias:Friendica\Object\Image');
$imageMock
->shouldReceive('supportedTypes')