From 1e4e0914fff2622cb633ed3f6651ab4daaa0841e Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 21 Nov 2021 07:10:10 +0000 Subject: [PATCH] Added parameter for test --- tests/legacy/ApiTest.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/legacy/ApiTest.php b/tests/legacy/ApiTest.php index e64c1e7ff..f984c48bf 100644 --- a/tests/legacy/ApiTest.php +++ b/tests/legacy/ApiTest.php @@ -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);