Searching test error

This commit is contained in:
Michael 2021-02-15 07:17:26 +00:00
parent d8aac47008
commit c444929022
2 changed files with 5 additions and 4 deletions

View File

@ -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);

View File

@ -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) {