Reenable Twitter/Lookup tests & add standard assertions

This commit is contained in:
Philipp 2021-12-09 21:32:17 +01:00
parent f9c490b29a
commit 616cf012f9
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
4 changed files with 90 additions and 56 deletions

View file

@ -39,8 +39,8 @@ class Lookup extends BaseApi
$users = [];
if (!empty($_REQUEST['user_id'])) {
foreach (explode(',', $_REQUEST['user_id']) as $cid) {
if (!empty($request['user_id'])) {
foreach (explode(',', $request['user_id']) as $cid) {
if (!empty($cid) && is_numeric($cid)) {
$users[] = DI::twitterUser()->createFromContactId((int)$cid, $uid, false)->toArray();
}