- Fix undenifed index: author-network notice
- Fix assertion mismatch in testApiDirectMessagesNewWithUserId
'body' => '',
'verb' => '',
'author-id' => 42,
+ 'author-network' => \Friendica\Core\Protocol::DFRN,
'plink' => '',
]
];
'body' => '',
'verb' => '',
'author-id' => 42,
+ 'author-network' => \Friendica\Core\Protocol::DFRN,
'plink' => '',
]
];
public function testApiDirectMessagesNewWithUserId()
{
$_POST['text'] = 'message_text';
- $_POST['user_id'] = $this->friendUser['id'];
+ $_POST['user_id'] = $this->otherUser['id'];
$result = api_direct_messages_new('json');
$this->assertEquals(['direct_message' => ['error' => -1]], $result);
}