]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Core/InstallerTest.php
Improved logging
[friendica.git] / tests / src / Core / InstallerTest.php
index 98fa3474fb111476351b0420b6e0b78c2a78ecdd..376703a270bf333485e884f8cc05f092bacca03a 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -63,7 +63,7 @@ class InstallerTest extends MockedTest
                           ->with(L10n::class)
                           ->andReturn($this->l10nMock);
 
-               DI::init($this->dice);
+               DI::init($this->dice, true);
        }
 
        public static function tearDownAfterClass(): void
@@ -282,7 +282,7 @@ class InstallerTest extends MockedTest
                $this->setFunctions(['gmp_strval' => false]);
                $install = new Installer();
                self::assertFalse($install->checkFunctions());
-               self::assertCheckExist(11,
+               self::assertCheckExist(12,
                        'GNU Multiple Precision PHP module',
                        'Error: GNU Multiple Precision PHP module required but not installed.',
                false,
@@ -299,6 +299,7 @@ class InstallerTest extends MockedTest
                        'posix_kill' => true,
                        'json_encode' => true,
                        'finfo_open' => true,
+                       'gmp_strval' => true,
                ]);
                $install = new Installer();
                self::assertTrue($install->checkFunctions());
@@ -360,7 +361,7 @@ class InstallerTest extends MockedTest
                     ->with(ICanSendHttpRequests::class)
                     ->andReturn($networkMock);
 
-               DI::init($this->dice);
+               DI::init($this->dice, true);
 
                // Mocking that we can use CURL
                $this->setFunctions(['curl_init' => true]);
@@ -407,7 +408,7 @@ class InstallerTest extends MockedTest
                           ->with(ICanSendHttpRequests::class)
                           ->andReturn($networkMock);
 
-               DI::init($this->dice);
+               DI::init($this->dice, true);
 
                // Mocking that we can use CURL
                $this->setFunctions(['curl_init' => true]);