Force right SSL_POLICY for test
This commit is contained in:
parent
4efc12232a
commit
d925e25424
1 changed files with 3 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
namespace Friendica\Test\src\Module\Api\GnuSocial\GnuSocial;
|
namespace Friendica\Test\src\Module\Api\GnuSocial\GnuSocial;
|
||||||
|
|
||||||
|
use Friendica\App\BaseURL;
|
||||||
use Friendica\App\Router;
|
use Friendica\App\Router;
|
||||||
use Friendica\DI;
|
use Friendica\DI;
|
||||||
use Friendica\Module\Api\GNUSocial\GNUSocial\Config;
|
use Friendica\Module\Api\GNUSocial\GNUSocial\Config;
|
||||||
|
@ -14,6 +15,8 @@ class ConfigTest extends ApiTest
|
||||||
*/
|
*/
|
||||||
public function testApiStatusnetConfig()
|
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]);
|
$config = new Config(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), ['REQUEST_METHOD' => Router::GET]);
|
||||||
$response = $config->run();
|
$response = $config->run();
|
||||||
$body = (string)$response->getBody();
|
$body = (string)$response->getBody();
|
||||||
|
|
Loading…
Reference in a new issue