1
0
Fork 0

Added test data

This commit is contained in:
Michael 2021-11-21 06:10:19 +00:00
parent c54d3ddf18
commit 52a3563de4

View file

@ -1770,7 +1770,7 @@ class ApiTest extends FixtureTest
{ {
$_REQUEST['page'] = -2; $_REQUEST['page'] = -2;
$result = api_statuses_user_timeline('json'); $result = api_statuses_user_timeline('json');
self::assertNotEmpty($result['status'], print_r($result['status'], true)); self::assertNotEmpty($result['status']);
foreach ($result['status'] as $status) { foreach ($result['status'] as $status) {
self::assertStatus($status); self::assertStatus($status);
} }
@ -2238,6 +2238,7 @@ class ApiTest extends FixtureTest
'plink' => '', 'plink' => '',
'uid' => $this->selfUser['id'], 'uid' => $this->selfUser['id'],
'uri-id' => 1, 'uri-id' => 1,
'created' => '',
] ]
]; ];
foreach ($items as $item) { foreach ($items as $item) {
@ -2265,6 +2266,7 @@ class ApiTest extends FixtureTest
'plink' => '', 'plink' => '',
'uid' => $this->selfUser['id'], 'uid' => $this->selfUser['id'],
'uri-id' => 1, 'uri-id' => 1,
'created' => '',
] ]
]; ];