- 'contact' => [
- [
- 'id' => 42,
- 'uid' => 42,
- 'name' => 'Self contact',
- 'nick' => 'selfcontact',
- 'self' => 1,
- 'nurl' => 'http://localhost/profile/selfcontact',
- 'url' => 'http://localhost/profile/selfcontact',
- 'about' => 'User used in tests',
- 'pending' => 0,
- 'blocked' => 0,
- 'rel' => Contact::FOLLOWER,
- 'network' => Protocol::DFRN,
- 'location' => 'DFRN',
- ],
- // Having the same name and nick allows us to test
- // the fallback to api_get_nick() in api_get_user()
- [
- 'id' => 43,
- 'uid' => 0,
- 'name' => 'othercontact',
- 'nick' => 'othercontact',
- 'self' => 0,
- 'nurl' => 'http://localhost/profile/othercontact',
- 'url' => 'http://localhost/profile/othercontact',
- 'pending' => 0,
- 'blocked' => 0,
- 'rel' => Contact::NOTHING,
- 'network' => Protocol::DFRN,
- 'location' => 'DFRN',
- ],
- [
- 'id' => 44,
- 'uid' => 42,
- 'name' => 'Friend contact',
- 'nick' => 'friendcontact',
- 'self' => 0,
- 'nurl' => 'http://localhost/profile/friendcontact',
- 'url' => 'http://localhost/profile/friendcontact',
- 'pending' => 0,
- 'blocked' => 0,
- 'rel' => Contact::SHARING,
- 'network' => Protocol::DFRN,
- 'location' => 'DFRN',
- ],
- [
- 'id' => 45,
- 'uid' => 0,
- 'name' => 'Friend contact',
- 'nick' => 'friendcontact',
- 'self' => 0,
- 'nurl' => 'http://localhost/profile/friendcontact',
- 'url' => 'http://localhost/profile/friendcontact',
- 'pending' => 0,
- 'blocked' => 0,
- 'rel' => Contact::SHARING,
- 'network' => Protocol::DFRN,
- 'location' => 'DFRN',
- ],
- [
- 'id' => 46,
- 'uid' => 42,
- 'name' => 'Mutual contact',
- 'nick' => 'mutualcontact',
- 'self' => 0,
- 'nurl' => 'http://localhost/profile/mutualcontact',
- 'url' => 'http://localhost/profile/mutualcontact',
- 'pending' => 0,
- 'blocked' => 0,
- 'rel' => Contact::FRIEND,
- 'network' => Protocol::DFRN,
- 'location' => 'DFRN',
- ],
- [
- 'id' => 47,
- 'uid' => 0,
- 'name' => 'Mutual contact',
- 'nick' => 'mutualcontact',
- 'self' => 0,
- 'nurl' => 'http://localhost/profile/mutualcontact',
- 'url' => 'http://localhost/profile/mutualcontact',
- 'pending' => 0,
- 'blocked' => 0,
- 'rel' => Contact::SHARING,
- 'network' => Protocol::DFRN,
- 'location' => 'DFRN',
- ],
- ],
- 'item-uri' => [