namespace Friendica\Test;
+use Friendica\App;
+use Friendica\BaseObject;
+use Friendica\Core\Config;
use Friendica\Database\DBA;
use PHPUnit\DbUnit\DataSet\YamlDataSet;
use PHPUnit\DbUnit\TestCaseTrait;
*/
abstract class DatabaseTest extends TestCase
{
-
use TestCaseTrait;
+ /**
+ * @var App The Friendica App
+ */
+ protected $app;
+
+ protected function setUp()
+ {
+ require_once __DIR__.'/../boot.php';
+
+ // Reusable App object
+ $this->app = BaseObject::getApp();
+
+ Config::set('system', 'url', 'http://localhost');
+ Config::set('system', 'hostname', 'localhost');
+ Config::set('system', 'worker_dont_fork', true);
+ }
+
/**
* Get database connection.
*