Searching test error
This commit is contained in:
parent
d8aac47008
commit
c444929022
|
@ -2264,7 +2264,8 @@ function api_statuses_user_timeline($type)
|
||||||
}
|
}
|
||||||
|
|
||||||
$params = ['order' => ['id' => true], 'limit' => [$start, $count]];
|
$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);
|
$ret = api_format_items(Post::toArray($statuses), $user_info, true, $type);
|
||||||
|
|
||||||
|
|
|
@ -2001,9 +2001,9 @@ class ApiTest extends FixtureTest
|
||||||
*/
|
*/
|
||||||
public function testApiStatusesUserTimeline()
|
public function testApiStatusesUserTimeline()
|
||||||
{
|
{
|
||||||
// $_REQUEST['max_id'] = 10;
|
$_REQUEST['max_id'] = 10;
|
||||||
// $_REQUEST['exclude_replies'] = true;
|
$_REQUEST['exclude_replies'] = true;
|
||||||
// $_REQUEST['conversation_id'] = 1;
|
$_REQUEST['conversation_id'] = 1;
|
||||||
$result = api_statuses_user_timeline('json');
|
$result = api_statuses_user_timeline('json');
|
||||||
self::assertNotEmpty($result['status']);
|
self::assertNotEmpty($result['status']);
|
||||||
foreach ($result['status'] as $status) {
|
foreach ($result['status'] as $status) {
|
||||||
|
|
Loading…
Reference in a new issue