Fixing tests
This commit is contained in:
parent
242fd646d2
commit
328a6c9e4e
|
@ -948,11 +948,11 @@ class ApiTest extends FixtureTest
|
||||||
*/
|
*/
|
||||||
public function testApiStatusesUpdate()
|
public function testApiStatusesUpdate()
|
||||||
{
|
{
|
||||||
$_GET['status'] = 'Status content #friendica';
|
$_REQUEST['status'] = 'Status content #friendica';
|
||||||
$_GET['in_reply_to_status_id'] = -1;
|
$_REQUEST['in_reply_to_status_id'] = -1;
|
||||||
$_GET['lat'] = 48;
|
$_REQUEST['lat'] = 48;
|
||||||
$_GET['long'] = 7;
|
$_REQUEST['long'] = 7;
|
||||||
$_FILES = [
|
$_FILES = [
|
||||||
'media' => [
|
'media' => [
|
||||||
'id' => 666,
|
'id' => 666,
|
||||||
'size' => 666,
|
'size' => 666,
|
||||||
|
@ -975,7 +975,7 @@ class ApiTest extends FixtureTest
|
||||||
*/
|
*/
|
||||||
public function testApiStatusesUpdateWithHtml()
|
public function testApiStatusesUpdateWithHtml()
|
||||||
{
|
{
|
||||||
$_GET['htmlstatus'] = '<b>Status content</b>';
|
$_REQUEST['htmlstatus'] = '<b>Status content</b>';
|
||||||
|
|
||||||
$result = api_statuses_update('json');
|
$result = api_statuses_update('json');
|
||||||
self::assertStatus($result['status']);
|
self::assertStatus($result['status']);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user