Fix tests
This commit is contained in:
parent
ff5da9bc71
commit
89efa73195
4 changed files with 8 additions and 0 deletions
|
@ -53,6 +53,8 @@ class Ids extends ContactEndpoint
|
||||||
|
|
||||||
$condition = ['uid' => $uid, 'self' => false, 'rel' => [Contact::FOLLOWER, Contact::FRIEND]];
|
$condition = ['uid' => $uid, 'self' => false, 'rel' => [Contact::FOLLOWER, Contact::FRIEND]];
|
||||||
|
|
||||||
|
$total_count = (int)DBA::count('contact', $condition);
|
||||||
|
|
||||||
if (!empty($max_id)) {
|
if (!empty($max_id)) {
|
||||||
$condition = DBA::mergeConditions($condition, ["`pid` < ?", $max_id]);
|
$condition = DBA::mergeConditions($condition, ["`pid` < ?", $max_id]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,6 +53,8 @@ class Lists extends ContactEndpoint
|
||||||
|
|
||||||
$condition = ['uid' => $uid, 'self' => false, 'rel' => [Contact::FOLLOWER, Contact::FRIEND]];
|
$condition = ['uid' => $uid, 'self' => false, 'rel' => [Contact::FOLLOWER, Contact::FRIEND]];
|
||||||
|
|
||||||
|
$total_count = (int)DBA::count('contact', $condition);
|
||||||
|
|
||||||
if (!empty($max_id)) {
|
if (!empty($max_id)) {
|
||||||
$condition = DBA::mergeConditions($condition, ["`pid` < ?", $max_id]);
|
$condition = DBA::mergeConditions($condition, ["`pid` < ?", $max_id]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,6 +53,8 @@ class Ids extends ContactEndpoint
|
||||||
|
|
||||||
$condition = ['uid' => $uid, 'self' => false, 'rel' => [Contact::SHARING, Contact::FRIEND]];
|
$condition = ['uid' => $uid, 'self' => false, 'rel' => [Contact::SHARING, Contact::FRIEND]];
|
||||||
|
|
||||||
|
$total_count = (int)DBA::count('contact', $condition);
|
||||||
|
|
||||||
if (!empty($max_id)) {
|
if (!empty($max_id)) {
|
||||||
$condition = DBA::mergeConditions($condition, ["`pid` < ?", $max_id]);
|
$condition = DBA::mergeConditions($condition, ["`pid` < ?", $max_id]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,6 +53,8 @@ class Lists extends ContactEndpoint
|
||||||
|
|
||||||
$condition = ['uid' => $uid, 'self' => false, 'rel' => [Contact::SHARING, Contact::FRIEND]];
|
$condition = ['uid' => $uid, 'self' => false, 'rel' => [Contact::SHARING, Contact::FRIEND]];
|
||||||
|
|
||||||
|
$total_count = (int)DBA::count('contact', $condition);
|
||||||
|
|
||||||
if (!empty($max_id)) {
|
if (!empty($max_id)) {
|
||||||
$condition = DBA::mergeConditions($condition, ["`pid` < ?", $max_id]);
|
$condition = DBA::mergeConditions($condition, ["`pid` < ?", $max_id]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue