]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Core/InstallerTest.php
Refactoring Logging to use Configuration
[friendica.git] / tests / src / Core / InstallerTest.php
index 3d7effe52b0dc26d5952353fd172bdd695564dfb..f7f8f5c7d494834c2e4734d1a6e6c4768217ef52 100644 (file)
@@ -99,6 +99,8 @@ class InstallerTest extends MockedTest
         */
        public function testCheckKeys()
        {
+               $this->mockL10nT();
+
                $this->setFunctions(['openssl_pkey_new' => false]);
                $install = new Installer();
                $this->assertFalse($install->checkKeys());
@@ -209,6 +211,8 @@ class InstallerTest extends MockedTest
         */
        public function testCheckLocalIni()
        {
+               $this->mockL10nT();
+
                $this->assertTrue($this->root->hasChild('config/local.config.php'));
 
                $install = new Installer();
@@ -227,6 +231,8 @@ class InstallerTest extends MockedTest
         */
        public function testCheckHtAccessFail()
        {
+               $this->mockL10nT();
+
                // Mocking the CURL Response
                $curlResult = \Mockery::mock('Friendica\Network\CurlResult');
                $curlResult
@@ -253,9 +259,6 @@ class InstallerTest extends MockedTest
                // 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'));
@@ -267,6 +270,8 @@ class InstallerTest extends MockedTest
         */
        public function testCheckHtAccessWork()
        {
+               $this->mockL10nT();
+
                // Mocking the failed CURL Response
                $curlResultF = \Mockery::mock('Friendica\Network\CurlResult');
                $curlResultF
@@ -306,6 +311,8 @@ class InstallerTest extends MockedTest
         */
        public function testImagick()
        {
+               $this->mockL10nT();
+
                $imageMock = \Mockery::mock('alias:Friendica\Object\Image');
                $imageMock
                        ->shouldReceive('supportedTypes')
@@ -331,6 +338,8 @@ class InstallerTest extends MockedTest
         */
        public function testImagickNotFound()
        {
+               $this->mockL10nT();
+
                $imageMock = \Mockery::mock('alias:Friendica\Object\Image');
                $imageMock
                        ->shouldReceive('supportedTypes')