Tests ...
This commit is contained in:
parent
0f09b4f636
commit
c732027b04
|
@ -48,6 +48,10 @@ class User extends BaseFactory
|
||||||
$userContact = [];
|
$userContact = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (empty($publicContact)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
$apcontact = APContact::getByURL($publicContact['url'], false);
|
$apcontact = APContact::getByURL($publicContact['url'], false);
|
||||||
|
|
||||||
return new \Friendica\Object\Api\Twitter\User($publicContact, $apcontact, $userContact, $skip_status, $include_user_entities);
|
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-network' => Protocol::DFRN,
|
||||||
'author-link' => 'http://localhost/profile/othercontact',
|
'author-link' => 'http://localhost/profile/othercontact',
|
||||||
'plink' => '',
|
'plink' => '',
|
||||||
|
'uid' => $this->selfUser['id'],
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
foreach ($items as $item) {
|
foreach ($items as $item) {
|
||||||
|
@ -2257,6 +2258,7 @@ class ApiTest extends FixtureTest
|
||||||
'author-network' => Protocol::DFRN,
|
'author-network' => Protocol::DFRN,
|
||||||
'author-link' => 'http://localhost/profile/othercontact',
|
'author-link' => 'http://localhost/profile/othercontact',
|
||||||
'plink' => '',
|
'plink' => '',
|
||||||
|
'uid' => $this->selfUser['id'],
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user