X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fbootstrap.php;h=4bc3e932f0118529faae6ca0d3560985603d2ccf;hb=d1d2ee6b2f2a46f1c6495bfe9936146a2bfad403;hp=4474e4ee8ec55cc624eebe0de62905e6702f7185;hpb=ce75177d4e40882ecffe35fcc7b101d8716801e0;p=friendica.git diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 4474e4ee8e..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; @@ -10,6 +11,12 @@ use PHPUnit\Framework\TestCase; require_once __DIR__.'/../boot.php'; 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);