]> git.mxchange.org Git - friendica.git/blobdiff - tests/bootstrap.php
Move meaningful message inside Exception thrown in Cache tests
[friendica.git] / tests / bootstrap.php
index 4474e4ee8ec55cc624eebe0de62905e6702f7185..6c04450b6a5175898c48adb0abc25caa79f2d547 100644 (file)
@@ -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,11 @@ 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', 'worker_dont_fork', true);
+
 // Backward compatibility
 if (!class_exists(TestCase::class)) {
        class_alias(PHPUnit_Framework_TestCase::class, TestCase::class);