diff --git a/tests/src/Factory/Api/Twitter/StatusTest.php b/tests/src/Factory/Api/Twitter/StatusTest.php index c2289ddb3c..06e762c9f0 100644 --- a/tests/src/Factory/Api/Twitter/StatusTest.php +++ b/tests/src/Factory/Api/Twitter/StatusTest.php @@ -123,6 +123,11 @@ class StatusTest extends FixtureTest */ public function testApiFormatItems() { + // FIXME: We are calling DI::app() here so Friendica\App::load() will be called. + // This will call Friendica\Core\Renderer::registerTemplateEngine() which is needed for this tests. + // This side effect MUST be eliminated. + DI::app(); + $posts = DI::dba()->selectToArray('post-view', ['uri-id']); foreach ($posts as $item) { $status = $this->statusFactory