X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fbootstrap.php;h=4bc3e932f0118529faae6ca0d3560985603d2ccf;hb=5881fa7229a25efd382668e6cd4a3af0f8d3198c;hp=4b03aa246b11056c2241af8d29feed9c45b6fc08;hpb=1f1a3930b238b5773ca23f0e3dfb6702b0928549;p=friendica.git diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 4b03aa246b..4bc3e932f0 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -3,6 +3,7 @@ * This file is loaded by PHPUnit before any test. */ +use Friendica\App; use PHPUnit\DbUnit\DataSet\YamlDataSet; use PHPUnit\DbUnit\TestCaseTrait; use PHPUnit\Framework\TestCase; @@ -12,6 +13,10 @@ require_once __DIR__.'/../include/api.php'; new App(dirname(__DIR__)); +\Friendica\Core\Config::set('system', 'url', 'http://localhost'); +\Friendica\Core\Config::set('system', 'hostname', 'localhost'); +\Friendica\Core\Config::set('system', 'worker_dont_fork', true); + // Backward compatibility if (!class_exists(TestCase::class)) { class_alias(PHPUnit_Framework_TestCase::class, TestCase::class);