Fix set_baseurl() notice messages in worker during tests

This commit is contained in:
Hypolite Petovan 2018-07-06 21:39:24 -04:00
parent e98216b5bb
commit 66ac16e101
2 changed files with 7 additions and 0 deletions

View file

@ -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. ; Maximum number of posts that a user can send per month with the API. 0 to disable monthly throttling.
throttle_limit_month = 0 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) ; worker_cooldown (Integer)
; Cooldown period in seconds after each worker function call. ; Cooldown period in seconds after each worker function call.
worker_cooldown = 0 worker_cooldown = 0

View file

@ -13,6 +13,8 @@ require_once __DIR__.'/../include/api.php';
new App(dirname(__DIR__)); new App(dirname(__DIR__));
\Friendica\Core\Config::set('system', 'url', 'http://localhost/');
// Backward compatibility // Backward compatibility
if (!class_exists(TestCase::class)) { if (!class_exists(TestCase::class)) {
class_alias(PHPUnit_Framework_TestCase::class, TestCase::class); class_alias(PHPUnit_Framework_TestCase::class, TestCase::class);