mirror of
https://github.com/friendica/friendica
synced 2024-12-22 18:40:17 +00:00
Added parameter for test
This commit is contained in:
parent
8bc748758d
commit
1e4e0914ff
1 changed files with 7 additions and 3 deletions
|
@ -1752,10 +1752,12 @@ class ApiTest extends FixtureTest
|
|||
*/
|
||||
public function testApiStatusesUserTimeline()
|
||||
{
|
||||
$_REQUEST['user_id'] = 42;
|
||||
$_REQUEST['max_id'] = 10;
|
||||
$_REQUEST['exclude_replies'] = true;
|
||||
$_REQUEST['conversation_id'] = 1;
|
||||
$result = api_statuses_user_timeline('json');
|
||||
|
||||
$result = api_statuses_user_timeline('json');
|
||||
self::assertNotEmpty($result['status']);
|
||||
foreach ($result['status'] as $status) {
|
||||
self::assertStatus($status);
|
||||
|
@ -1769,8 +1771,10 @@ class ApiTest extends FixtureTest
|
|||
*/
|
||||
public function testApiStatusesUserTimelineWithNegativePage()
|
||||
{
|
||||
$_REQUEST['page'] = -2;
|
||||
$result = api_statuses_user_timeline('json');
|
||||
$_REQUEST['user_id'] = 42;
|
||||
$_REQUEST['page'] = -2;
|
||||
|
||||
$result = api_statuses_user_timeline('json');
|
||||
self::assertNotEmpty($result['status']);
|
||||
foreach ($result['status'] as $status) {
|
||||
self::assertStatus($status);
|
||||
|
|
Loading…
Reference in a new issue