Tests ...

This commit is contained in:
Michael 2021-11-21 00:14:38 +00:00
parent 0f09b4f636
commit c732027b04
2 changed files with 6 additions and 0 deletions

View file

@ -48,6 +48,10 @@ class User extends BaseFactory
$userContact = [];
}
if (empty($publicContact)) {
return null;
}
$apcontact = APContact::getByURL($publicContact['url'], false);
return new \Friendica\Object\Api\Twitter\User($publicContact, $apcontact, $userContact, $skip_status, $include_user_entities);

View file

@ -2234,6 +2234,7 @@ class ApiTest extends FixtureTest
'author-network' => Protocol::DFRN,
'author-link' => 'http://localhost/profile/othercontact',
'plink' => '',
'uid' => $this->selfUser['id'],
]
];
foreach ($items as $item) {
@ -2257,6 +2258,7 @@ class ApiTest extends FixtureTest
'author-network' => Protocol::DFRN,
'author-link' => 'http://localhost/profile/othercontact',
'plink' => '',
'uid' => $this->selfUser['id'],
]
];