mirror of
https://github.com/friendica/friendica
synced 2024-12-23 03:20:15 +00:00
Searching test error
This commit is contained in:
parent
d8aac47008
commit
c444929022
2 changed files with 5 additions and 4 deletions
|
@ -2264,7 +2264,8 @@ function api_statuses_user_timeline($type)
|
|||
}
|
||||
|
||||
$params = ['order' => ['id' => true], 'limit' => [$start, $count]];
|
||||
$statuses = Post::selectForUser(api_user(), [], $condition, $params);
|
||||
// $statuses = Post::selectForUser(api_user(), [], $condition, $params);
|
||||
$statuses = Post::select([], $condition, $params);
|
||||
|
||||
$ret = api_format_items(Post::toArray($statuses), $user_info, true, $type);
|
||||
|
||||
|
|
|
@ -2001,9 +2001,9 @@ class ApiTest extends FixtureTest
|
|||
*/
|
||||
public function testApiStatusesUserTimeline()
|
||||
{
|
||||
// $_REQUEST['max_id'] = 10;
|
||||
// $_REQUEST['exclude_replies'] = true;
|
||||
// $_REQUEST['conversation_id'] = 1;
|
||||
$_REQUEST['max_id'] = 10;
|
||||
$_REQUEST['exclude_replies'] = true;
|
||||
$_REQUEST['conversation_id'] = 1;
|
||||
$result = api_statuses_user_timeline('json');
|
||||
self::assertNotEmpty($result['status']);
|
||||
foreach ($result['status'] as $status) {
|
||||
|
|
Loading…
Reference in a new issue