From: Hypolite Petovan Date: Sat, 7 Jul 2018 01:39:24 +0000 (-0400) Subject: Fix set_baseurl() notice messages in worker during tests X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=66ac16e101f18057a099e2f746661cfa45392a24;p=friendica.git Fix set_baseurl() notice messages in worker during tests --- diff --git a/config/defaults.ini.php b/config/defaults.ini.php index f5974b9258..36c06da4cd 100644 --- a/config/defaults.ini.php +++ b/config/defaults.ini.php @@ -416,6 +416,11 @@ throttle_limit_week = 0 ; Maximum number of posts that a user can send per month with the API. 0 to disable monthly throttling. throttle_limit_month = 0 +; url (String) +; The fully-qualified URL of this Friendica node. +; Used by the worker in a non-HTTP execution environment. +url = + ; worker_cooldown (Integer) ; Cooldown period in seconds after each worker function call. worker_cooldown = 0 diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 875ec8ab7d..e566b58042 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -13,6 +13,8 @@ require_once __DIR__.'/../include/api.php'; new App(dirname(__DIR__)); +\Friendica\Core\Config::set('system', 'url', 'http://localhost/'); + // Backward compatibility if (!class_exists(TestCase::class)) { class_alias(PHPUnit_Framework_TestCase::class, TestCase::class);