Enhanced test data
This commit is contained in:
parent
f6e4aa6ad3
commit
38de3a53a5
|
@ -1677,7 +1677,7 @@ class ApiTest extends FixtureTest
|
||||||
$_REQUEST['max_id'] = 10;
|
$_REQUEST['max_id'] = 10;
|
||||||
$_REQUEST['exclude_replies'] = true;
|
$_REQUEST['exclude_replies'] = true;
|
||||||
$result = api_statuses_public_timeline('json');
|
$result = api_statuses_public_timeline('json');
|
||||||
self::assertNotEmpty($result['status'], var_export($result, true));
|
self::assertNotEmpty($result['status']);
|
||||||
foreach ($result['status'] as $status) {
|
foreach ($result['status'] as $status) {
|
||||||
self::assertStatus($status);
|
self::assertStatus($status);
|
||||||
}
|
}
|
||||||
|
@ -1731,7 +1731,7 @@ class ApiTest extends FixtureTest
|
||||||
{
|
{
|
||||||
$_REQUEST['max_id'] = 10;
|
$_REQUEST['max_id'] = 10;
|
||||||
$result = api_statuses_networkpublic_timeline('json');
|
$result = api_statuses_networkpublic_timeline('json');
|
||||||
self::assertNotEmpty($result['status'], var_export($result, true));
|
self::assertNotEmpty($result['status']);
|
||||||
foreach ($result['status'] as $status) {
|
foreach ($result['status'] as $status) {
|
||||||
self::assertStatus($status);
|
self::assertStatus($status);
|
||||||
}
|
}
|
||||||
|
@ -1746,7 +1746,7 @@ class ApiTest extends FixtureTest
|
||||||
{
|
{
|
||||||
$_REQUEST['page'] = -2;
|
$_REQUEST['page'] = -2;
|
||||||
$result = api_statuses_networkpublic_timeline('json');
|
$result = api_statuses_networkpublic_timeline('json');
|
||||||
self::assertNotEmpty($result['status'], var_export($result, true));
|
self::assertNotEmpty($result['status']);
|
||||||
foreach ($result['status'] as $status) {
|
foreach ($result['status'] as $status) {
|
||||||
self::assertStatus($status);
|
self::assertStatus($status);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user