mirror of
https://github.com/friendica/friendica
synced 2024-12-22 19:20:17 +00:00
Fix tests for now because of side effect in Friendica\App class
This commit is contained in:
parent
c1b48be75c
commit
1f2c97f76f
1 changed files with 5 additions and 0 deletions
|
@ -123,6 +123,11 @@ class StatusTest extends FixtureTest
|
||||||
*/
|
*/
|
||||||
public function testApiFormatItems()
|
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']);
|
$posts = DI::dba()->selectToArray('post-view', ['uri-id']);
|
||||||
foreach ($posts as $item) {
|
foreach ($posts as $item) {
|
||||||
$status = $this->statusFactory
|
$status = $this->statusFactory
|
||||||
|
|
Loading…
Reference in a new issue