]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Network/CurlResultTest.php
Merge pull request #7386 from MrPetovan/bug/7293-hide-registration-link
[friendica.git] / tests / src / Network / CurlResultTest.php
index 13a14d985eef931a1783c6462865604eca52ca24..b542371b3922432eda53ae84e2cb82e318de256c 100644 (file)
@@ -2,17 +2,18 @@
 
 namespace Friendica\Test\src\Network;
 
+use Friendica\Core\Logger;
 use Friendica\Network\CurlResult;
+use Friendica\Util\Logger\VoidLogger;
 use PHPUnit\Framework\TestCase;
 
 class CurlResultTest extends TestCase
 {
-       public function setUp()
+       protected function setUp()
        {
                parent::setUp();
 
-               require_once __DIR__.'/../../../boot.php';
-               require_once __DIR__.'/../../../include/text.php';
+               Logger::init(new VoidLogger());
        }
 
        /**
@@ -42,6 +43,8 @@ class CurlResultTest extends TestCase
 
        /**
         * @small
+        * @runInSeparateProcess
+        * @preserveGlobalState disabled
         */
        public function testRedirect()
        {
@@ -94,6 +97,8 @@ class CurlResultTest extends TestCase
 
        /**
         * @small
+        * @runInSeparateProcess
+        * @preserveGlobalState disabled
         */
        public function testRedirectHeader()
        {