use Friendica\Core\Protocol;
use Friendica\Core\System;
use Friendica\Database\Database;
+use Friendica\Model\Contact;
use Friendica\Network\HTTPException;
use Friendica\Test\Util\Database\StaticDatabase;
use Monolog\Handler\TestHandler;
*/
public function testApiFfIds()
{
- $result = api_ff_ids('json');
- $this->assertNull($result);
+ $result = api_ff_ids('json', Contact::FOLLOWER);
+ $this->assertEquals(['id' => []], $result);
}
/**
public function testApiFfIdsWithoutAuthenticatedUser()
{
$_SESSION['authenticated'] = false;
- api_ff_ids('json');
+ api_ff_ids('json', Contact::FOLLOWER);
}
/**
public function testApiFriendsIds()
{
$result = api_friends_ids('json');
- $this->assertNull($result);
+ $this->assertEquals(['id' => []], $result);
}
/**
public function testApiFollowersIds()
{
$result = api_followers_ids('json');
- $this->assertNull($result);
+ $this->assertEquals(['id' => []], $result);
}
/**