Fix tests for now because of side effect in Friendica\App class

This commit is contained in:
Art4 2024-11-16 10:21:29 +00:00
parent c1b48be75c
commit 1f2c97f76f

View file

@ -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