Added parameter for test
This commit is contained in:
@@ -1752,9 +1752,11 @@ class ApiTest extends FixtureTest
|
|||||||
*/
|
*/
|
||||||
public function testApiStatusesUserTimeline()
|
public function testApiStatusesUserTimeline()
|
||||||
{
|
{
|
||||||
|
$_REQUEST['user_id'] = 42;
|
||||||
$_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) {
|
||||||
@@ -1769,7 +1771,9 @@ class ApiTest extends FixtureTest
|
|||||||
*/
|
*/
|
||||||
public function testApiStatusesUserTimelineWithNegativePage()
|
public function testApiStatusesUserTimelineWithNegativePage()
|
||||||
{
|
{
|
||||||
|
$_REQUEST['user_id'] = 42;
|
||||||
$_REQUEST['page'] = -2;
|
$_REQUEST['page'] = -2;
|
||||||
|
|
||||||
$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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user