mirror of
https://github.com/friendica/friendica
synced 2025-04-22 18:30:13 +00:00
Implement Twitter contact endpoints
- Implement /followers/ids - Implement /followers/list - Reimplement /friends/ids - Reimplement /friends/list - Update API reference - Remove obsolete tests
This commit is contained in:
parent
173264eaab
commit
7a5afc10bb
9 changed files with 422 additions and 155 deletions
|
@ -2851,61 +2851,6 @@ class ApiTest extends DatabaseTest
|
|||
$this->assertEquals('0.9.7', $result['version']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the api_ff_ids() function.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testApiFfIds()
|
||||
{
|
||||
$result = api_ff_ids('json', Contact::FOLLOWER);
|
||||
$this->assertEquals(['id' => []], $result);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the api_ff_ids() function with a result.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testApiFfIdsWithResult()
|
||||
{
|
||||
$this->markTestIncomplete();
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the api_ff_ids() function without an authenticated user.
|
||||
*
|
||||
* @return void
|
||||
* @expectedException Friendica\Network\HTTPException\ForbiddenException
|
||||
*/
|
||||
public function testApiFfIdsWithoutAuthenticatedUser()
|
||||
{
|
||||
$_SESSION['authenticated'] = false;
|
||||
api_ff_ids('json', Contact::FOLLOWER);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the api_friends_ids() function.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testApiFriendsIds()
|
||||
{
|
||||
$result = api_friends_ids('json');
|
||||
$this->assertEquals(['id' => []], $result);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the api_followers_ids() function.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testApiFollowersIds()
|
||||
{
|
||||
$result = api_followers_ids('json');
|
||||
$this->assertEquals(['id' => []], $result);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the api_direct_messages_new() function.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue