Tests ...
This commit is contained in:
parent
0f09b4f636
commit
c732027b04
2 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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'],
|
||||
]
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue