From d925e2542430bc508c46f14d371c70de5479158e Mon Sep 17 00:00:00 2001 From: Philipp Date: Sun, 5 Dec 2021 00:23:12 +0100 Subject: [PATCH] Force right SSL_POLICY for test --- tests/src/Module/Api/GnuSocial/GnuSocial/ConfigTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/src/Module/Api/GnuSocial/GnuSocial/ConfigTest.php b/tests/src/Module/Api/GnuSocial/GnuSocial/ConfigTest.php index 83742e0c79..3cc1df2961 100644 --- a/tests/src/Module/Api/GnuSocial/GnuSocial/ConfigTest.php +++ b/tests/src/Module/Api/GnuSocial/GnuSocial/ConfigTest.php @@ -2,6 +2,7 @@ namespace Friendica\Test\src\Module\Api\GnuSocial\GnuSocial; +use Friendica\App\BaseURL; use Friendica\App\Router; use Friendica\DI; use Friendica\Module\Api\GNUSocial\GNUSocial\Config; @@ -14,6 +15,8 @@ class ConfigTest extends ApiTest */ public function testApiStatusnetConfig() { + DI::config()->set('system', 'ssl_policy', BaseURL::SSL_POLICY_FULL); + $config = new Config(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), ['REQUEST_METHOD' => Router::GET]); $response = $config->run(); $body = (string)$response->getBody();