use Friendica\Model\Notification;
return [
- // Empty these tables
- 'profile_field',
- 'permissionset',
- 'cache',
- 'conversation',
- 'pconfig',
- 'photo',
- 'workerqueue',
- 'mail',
- 'post-delivery-data',
'gserver' => [
[
'url' => 'https://friendica.local',
],
[
'id' => 42,
- 'uri' => 'http://localhost/profile/selfcontact',
+ 'uri' => 'https://friendica.local/profile/selfcontact',
'guid' => '42',
],
[
'id' => 43,
- 'uri' => 'http://localhost/profile/othercontact',
+ 'uri' => 'https://friendica.local/profile/othercontact',
'guid' => '43',
],
[
'id' => 44,
- 'uri' => 'http://localhost/profile/friendcontact',
+ 'uri' => 'https://friendica.local/profile/friendcontact',
'guid' => '44',
],
[
'id' => 46,
- 'uri' => 'http://localhost/profile/mutualcontact',
+ 'uri' => 'https://friendica.local/profile/mutualcontact',
'guid' => '46',
],
[
'name' => 'Self contact',
'nick' => 'selfcontact',
'self' => 1,
- 'nurl' => 'http://localhost/profile/selfcontact',
- 'url' => 'http://localhost/profile/selfcontact',
- 'notify' => 'http://localhost/friendica/inbox',
+ 'nurl' => 'http://friendica.local/profile/selfcontact',
+ 'url' => 'https://friendica.local/profile/selfcontact',
+ 'notify' => 'https://friendica.local/friendica/inbox',
'about' => 'User used in tests',
'prvkey' => "-----BEGIN RSA PRIVATE KEY-----\nMIICXgIBAAKBgQDVqxF9kIgtgRL0+q+jTi578FA1r1+crEmlYc0pdxcbmmrhjuRc\nrK1gX3r0mnP25fkHzG+6CAjgbDBRFM1/RXBCyp/KHVks7eQ4yr4MxTRlsxo5qf2o\nnbyNzM7Q+LZhFhe/yIoGN/fuEjlqBE98IfPOrUjsQPX240vGNXIkfLiAWwIDAQAB\nAoGBAIwuiPIdggqAtWQ+mD8HCx5LQwSFw6/xpPu5F7ZNqL52aAsGCbL3o2QoIG4c\na1qf9Ot16BNgNBqxQF3hzRTkBMrKYlmNTUkwJXun/zjQJq2JvOlcrSuXlIucUjs4\nXekVN25aYPHrX9m2FEIUwZTb4UYXbR80KbIDI53BkQ6EwSbpAkEA7aO49CR2Hf1Y\n1d2GaUI/Z0wvbj//+t0Kg0bPt16ca8KVjEQQA5ylsDaiw510jDz9NBQxSOk6If23\nUeRixc1RDQJBAOYtN4YnPM1Zfp6IxXlqMCc+xUWRTPEPFt+WpG+v79koNamAeA6o\nZzTl92hl58IqSdbgojeE2zXWQRvlimFMLQcCQQCV6jND0byyLqFcSeQBg0l8YROK\n+dUC7W80YfeoNod3c8nkMwvnO2tLPyxvO2XLEq6prBNra7bAus5rWyj0oBIBAkEA\n1EvUMFm0TLpEfLgtWuTD8Q6GKLnxO0ztjd+FXrXpBGN/ywyArxRHzJRmctW6wmz6\nmcOqGobhIHCysKYv0bnOtQJAc2M5RwlASHH4jGJzXgt3nboyiJfufM0RV9iry3ho\nCXQRWAONKoLqnsfC6qNP8OzY8FMJcwmPWj7Q/6z6yLBFTA==\n-----END RSA PRIVATE KEY-----",
'pubkey' => "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDVqxF9kIgtgRL0+q+jTi578FA1\nr1+crEmlYc0pdxcbmmrhjuRcrK1gX3r0mnP25fkHzG+6CAjgbDBRFM1/RXBCyp/K\nHVks7eQ4yr4MxTRlsxo5qf2onbyNzM7Q+LZhFhe/yIoGN/fuEjlqBE98IfPOrUjs\nQPX240vGNXIkfLiAWwIDAQAB\n-----END PUBLIC KEY-----",
'rel' => Contact::FOLLOWER,
'network' => Protocol::DFRN,
'location' => 'DFRN',
+ 'baseurl' => 'https://friendica.local',
],
// Having the same name and nick allows us to test
// the fallback to api_get_nick() in api_get_user()
'name' => 'othercontact',
'nick' => 'othercontact',
'self' => 0,
- 'nurl' => 'http://localhost/profile/othercontact',
- 'url' => 'http://localhost/profile/othercontact',
- 'notify' => 'http://localhost/friendica/inbox',
+ 'nurl' => 'http://friendica.local/profile/othercontact',
+ 'url' => 'https://friendica.local/profile/othercontact',
+ 'notify' => 'https://friendica.local/friendica/inbox',
'pending' => 0,
'blocked' => 0,
'rel' => Contact::NOTHING,
'name' => 'Friend contact',
'nick' => 'friendcontact',
'self' => 0,
- 'nurl' => 'http://localhost/profile/friendcontact',
- 'url' => 'http://localhost/profile/friendcontact',
- 'notify' => 'http://localhost/friendica/inbox',
+ 'nurl' => 'http://friendica.local/profile/friendcontact',
+ 'url' => 'https://friendica.local/profile/friendcontact',
+ 'notify' => 'https://friendica.local/friendica/inbox',
'pending' => 0,
'blocked' => 0,
'rel' => Contact::SHARING,
'name' => 'Friend contact',
'nick' => 'friendcontact',
'self' => 0,
- 'nurl' => 'http://localhost/profile/friendcontact',
- 'url' => 'http://localhost/profile/friendcontact',
- 'notify' => 'http://localhost/friendica/inbox',
+ 'nurl' => 'http://friendica.local/profile/friendcontact',
+ 'url' => 'https://friendica.local/profile/friendcontact',
+ 'notify' => 'https://friendica.local/friendica/inbox',
'pending' => 0,
'blocked' => 0,
'rel' => Contact::SHARING,
'name' => 'Mutual contact',
'nick' => 'mutualcontact',
'self' => 0,
- 'nurl' => 'http://localhost/profile/mutualcontact',
- 'url' => 'http://localhost/profile/mutualcontact',
- 'notify' => 'http://localhost/friendica/inbox',
+ 'nurl' => 'http://friendica.local/profile/mutualcontact',
+ 'url' => 'https://friendica.local/profile/mutualcontact',
+ 'notify' => 'https://friendica.local/friendica/inbox',
'pending' => 0,
'blocked' => 0,
'rel' => Contact::FRIEND,
'name' => 'Mutual contact',
'nick' => 'mutualcontact',
'self' => 0,
- 'nurl' => 'http://localhost/profile/mutualcontact',
- 'url' => 'http://localhost/profile/mutualcontact',
- 'notify' => 'http://localhost/friendica/inbox',
+ 'nurl' => 'http://friendica.local/profile/mutualcontact',
+ 'url' => 'https://friendica.local/profile/mutualcontact',
+ 'notify' => 'https://friendica.local/friendica/inbox',
'pending' => 0,
'blocked' => 0,
'rel' => Contact::SHARING,
'name' => 'Self contact',
'nick' => 'selfcontact',
'self' => 0,
- 'nurl' => 'http://localhost/profile/selfcontact',
- 'url' => 'http://localhost/profile/selfcontact',
- 'notify' => 'http://localhost/friendica/inbox',
+ 'nurl' => 'http://friendica.local/profile/selfcontact',
+ 'url' => 'https://friendica.local/profile/selfcontact',
+ 'notify' => 'https://friendica.local/friendica/inbox',
'about' => 'User used in tests',
'pending' => 0,
'blocked' => 0,
],
'apcontact' => [
[
- "url" => "http://localhost/profile/selfcontact",
+ "url" => "https://friendica.local/profile/selfcontact",
"uri-id" => 1,
"uuid" => "42",
"type" => "Person",
- "following" => "http://localhost/following/selfcontact",
- "followers" => "http://localhost/followers/selfcontact",
- "inbox" => "http://localhost/inbox/selfcontact",
- "outbox" => "http://localhost/outbox/selfcontact",
- "sharedinbox" => "http://localhost/inbox",
+ "following" => "https://friendica.local/following/selfcontact",
+ "followers" => "https://friendica.local/followers/selfcontact",
+ "inbox" => "https://friendica.local/inbox/selfcontact",
+ "outbox" => "https://friendica.local/outbox/selfcontact",
+ "sharedinbox" => "https://friendica.local/inbox",
"manually-approve" => 1,
"discoverable" => 0,
"nick" => "selfcontact",
"about" => "User used in tests",
"xmpp" => null,
"matrix" => null,
- "photo" => "http://localhost/photo/profile/admin.jpeg",
+ "photo" => "https://friendica.local/photo/profile/admin.jpeg",
"header" => null,
"addr" => "selfcontact@localhost",
"alias" => null,
[
'uri-id' => 1,
'body' => 'Parent status',
- 'plink' => 'http://localhost/display/1',
+ 'plink' => 'https://friendica.local/display/1',
],
[
'uri-id' => 2,
'body' => 'Reply',
- 'plink' => 'http://localhost/display/2',
+ 'plink' => 'https://friendica.local/display/2',
],
[
'uri-id' => 3,
'body' => 'Other user status',
- 'plink' => 'http://localhost/display/3',
+ 'plink' => 'https://friendica.local/display/3',
],
[
'uri-id' => 4,
'body' => 'Friend user reply',
- 'plink' => 'http://localhost/display/4',
+ 'plink' => 'https://friendica.local/display/4',
],
[
'uri-id' => 5,
'body' => '[share]Shared status[/share]',
- 'plink' => 'http://localhost/display/5',
+ 'plink' => 'https://friendica.local/display/5',
],
[
'uri-id' => 6,
'body' => 'Friend user status',
- 'plink' => 'http://localhost/display/6',
+ 'plink' => 'https://friendica.local/display/6',
],
[
'uri-id' => 7,
'suscipit aut facilis ut inventore omnis exercitationem quo magnam ' .
'consequatur maxime aut illum soluta quaerat natus unde aspernatur ' .
'et sed beatae nihil ullam temporibus corporis ratione blanditiis',
- 'plink' => 'http://localhost/display/6',
+ 'plink' => 'https://friendica.local/display/6',
],
[
'uri-id' => 100,
'thr-parent-id' => 1,
'gravity' => Item::GRAVITY_PARENT,
'network' => Protocol::DFRN,
- 'owner-id' => 42,
- 'author-id' => 42,
- 'causer-id' => 42,
+ 'owner-id' => 43,
+ 'author-id' => 43,
+ 'causer-id' => 43,
'vid' => 8,
'private' => Item::PUBLIC,
'global' => true,
'thr-parent-id' => 1,
'gravity' => Item::GRAVITY_COMMENT,
'network' => Protocol::DFRN,
- 'owner-id' => 42,
- 'author-id' => 42,
- 'causer-id' => 42,
+ 'owner-id' => 43,
+ 'author-id' => 43,
+ 'causer-id' => 43,
'vid' => 8,
'private' => Item::PUBLIC,
'global' => true,
'thr-parent-id' => 3,
'gravity' => Item::GRAVITY_PARENT,
'network' => Protocol::DFRN,
- 'owner-id' => 42,
+ 'owner-id' => 43,
'author-id' => 43,
'causer-id' => 43,
'vid' => 8,
'thr-parent-id' => 1,
'gravity' => Item::GRAVITY_COMMENT,
'network' => Protocol::DFRN,
- 'owner-id' => 42,
- 'author-id' => 44,
- 'causer-id' => 44,
+ 'owner-id' => 43,
+ 'author-id' => 45,
+ 'causer-id' => 45,
'vid' => 8,
'private' => Item::PUBLIC,
'global' => true,
'thr-parent-id' => 1,
'gravity' => Item::GRAVITY_COMMENT,
'network' => Protocol::DFRN,
- 'owner-id' => 42,
- 'author-id' => 42,
- 'causer-id' => 42,
+ 'owner-id' => 43,
+ 'author-id' => 43,
+ 'causer-id' => 43,
'vid' => 8,
'private' => Item::PUBLIC,
'global' => true,
'thr-parent-id' => 6,
'gravity' => Item::GRAVITY_PARENT,
'network' => Protocol::DFRN,
- 'owner-id' => 42,
- 'author-id' => 44,
- 'causer-id' => 44,
+ 'owner-id' => 43,
+ 'author-id' => 45,
+ 'causer-id' => 45,
'vid' => 8,
'private' => Item::PUBLIC,
'global' => true,
'thr-parent-id' => 7,
'gravity' => Item::GRAVITY_PARENT,
'network' => Protocol::DFRN,
- 'owner-id' => 42,
- 'author-id' => 44,
- 'causer-id' => 44,
+ 'owner-id' => 43,
+ 'author-id' => 45,
+ 'causer-id' => 45,
'vid' => 8,
'private' => Item::PUBLIC,
'global' => true,
'id' => 1,
'uri-id' => 1,
'visible' => 1,
- 'contact-id' => 42,
- 'author-id' => 42,
- 'owner-id' => 42,
- 'causer-id' => 42,
+ 'contact-id' => 43,
+ 'author-id' => 43,
+ 'owner-id' => 43,
+ 'causer-id' => 43,
'uid' => 42,
'vid' => 8,
'unseen' => 1,
'id' => 2,
'uri-id' => 2,
'uid' => 42,
- 'contact-id' => 42,
+ 'contact-id' => 43,
'unseen' => 0,
'origin' => 1,
'parent-uri-id' => 1,
'thr-parent-id' => 1,
'gravity' => Item::GRAVITY_COMMENT,
'network' => Protocol::DFRN,
- 'owner-id' => 42,
- 'author-id' => 42,
- 'causer-id' => 42,
+ 'owner-id' => 43,
+ 'author-id' => 43,
+ 'causer-id' => 43,
'vid' => 8,
'private' => Item::PUBLIC,
'global' => true,
'thr-parent-id' => 3,
'gravity' => Item::GRAVITY_PARENT,
'network' => Protocol::DFRN,
- 'owner-id' => 42,
+ 'owner-id' => 43,
'author-id' => 43,
'causer-id' => 43,
'vid' => 8,
'id' => 4,
'uri-id' => 4,
'uid' => 42,
- 'contact-id' => 44,
+ 'contact-id' => 45,
'unseen' => 0,
'origin' => 1,
'parent-uri-id' => 1,
'thr-parent-id' => 1,
'gravity' => Item::GRAVITY_COMMENT,
'network' => Protocol::DFRN,
- 'owner-id' => 42,
- 'author-id' => 44,
- 'causer-id' => 44,
+ 'owner-id' => 43,
+ 'author-id' => 45,
+ 'causer-id' => 45,
'vid' => 8,
'private' => Item::PUBLIC,
'global' => true,
'id' => 5,
'uri-id' => 5,
'uid' => 42,
- 'contact-id' => 42,
+ 'contact-id' => 43,
'unseen' => 0,
'origin' => 1,
'parent-uri-id' => 1,
'thr-parent-id' => 1,
'gravity' => Item::GRAVITY_COMMENT,
'network' => Protocol::DFRN,
- 'owner-id' => 42,
- 'author-id' => 42,
- 'causer-id' => 42,
+ 'owner-id' => 43,
+ 'author-id' => 43,
+ 'causer-id' => 43,
'vid' => 8,
'private' => Item::PUBLIC,
'global' => true,
'id' => 6,
'uri-id' => 6,
'uid' => 42,
- 'contact-id' => 44,
+ 'contact-id' => 45,
'unseen' => 0,
'origin' => 1,
'parent-uri-id' => 6,
'thr-parent-id' => 6,
'gravity' => Item::GRAVITY_PARENT,
'network' => Protocol::DFRN,
- 'owner-id' => 42,
- 'author-id' => 44,
- 'causer-id' => 44,
+ 'owner-id' => 43,
+ 'author-id' => 45,
+ 'causer-id' => 45,
'vid' => 8,
'private' => Item::PUBLIC,
'global' => true,
'id' => 7,
'uri-id' => 1,
'uid' => 0,
- 'contact-id' => 42,
+ 'contact-id' => 43,
'unseen' => 1,
'origin' => 0,
'parent-uri-id' => 1,
'thr-parent-id' => 1,
'gravity' => Item::GRAVITY_PARENT,
'network' => Protocol::DFRN,
- 'owner-id' => 42,
- 'author-id' => 42,
- 'causer-id' => 42,
+ 'owner-id' => 43,
+ 'author-id' => 43,
+ 'causer-id' => 43,
'vid' => 8,
'private' => Item::PUBLIC,
'global' => true,
'id' => 8,
'uri-id' => 2,
'uid' => 0,
- 'contact-id' => 42,
+ 'contact-id' => 43,
'unseen' => 0,
'origin' => 0,
'parent-uri-id' => 1,
'thr-parent-id' => 1,
'gravity' => Item::GRAVITY_COMMENT,
'network' => Protocol::DFRN,
- 'owner-id' => 42,
- 'author-id' => 42,
- 'causer-id' => 42,
+ 'owner-id' => 43,
+ 'author-id' => 43,
+ 'causer-id' => 43,
'vid' => 8,
'private' => Item::PUBLIC,
'global' => true,
'thr-parent-id' => 3,
'gravity' => Item::GRAVITY_PARENT,
'network' => Protocol::DFRN,
- 'owner-id' => 42,
+ 'owner-id' => 43,
'author-id' => 43,
'causer-id' => 43,
'vid' => 8,
'id' => 10,
'uri-id' => 4,
'uid' => 0,
- 'contact-id' => 44,
+ 'contact-id' => 45,
'unseen' => 0,
'origin' => 0,
'parent-uri-id' => 1,
'thr-parent-id' => 1,
'gravity' => Item::GRAVITY_COMMENT,
'network' => Protocol::DFRN,
- 'owner-id' => 42,
- 'author-id' => 44,
- 'causer-id' => 44,
+ 'owner-id' => 43,
+ 'author-id' => 45,
+ 'causer-id' => 45,
'vid' => 8,
'private' => Item::PUBLIC,
'global' => true,
'id' => 11,
'uri-id' => 5,
'uid' => 0,
- 'contact-id' => 42,
+ 'contact-id' => 43,
'unseen' => 0,
'origin' => 0,
'parent-uri-id' => 1,
'thr-parent-id' => 1,
'gravity' => Item::GRAVITY_COMMENT,
'network' => Protocol::DFRN,
- 'owner-id' => 42,
- 'author-id' => 42,
- 'causer-id' => 42,
+ 'owner-id' => 43,
+ 'author-id' => 43,
+ 'causer-id' => 43,
'vid' => 8,
'private' => Item::PUBLIC,
'global' => true,
'id' => 12,
'uri-id' => 6,
'visible' => 1,
- 'contact-id' => 44,
- 'author-id' => 44,
- 'owner-id' => 42,
- 'causer-id' => 44,
+ 'contact-id' => 45,
+ 'author-id' => 45,
+ 'owner-id' => 43,
+ 'causer-id' => 45,
'uid' => 0,
'vid' => 8,
'unseen' => 0,
'id' => 13,
'uri-id' => 7,
'visible' => 1,
- 'contact-id' => 44,
- 'author-id' => 44,
- 'owner-id' => 42,
- 'causer-id' => 44,
+ 'contact-id' => 45,
+ 'author-id' => 45,
+ 'owner-id' => 43,
+ 'causer-id' => 45,
'uid' => 0,
'vid' => 8,
'unseen' => 0,
'id' => 14,
'uri-id' => 100,
'visible' => 1,
- 'contact-id' => 44,
- 'author-id' => 44,
- 'owner-id' => 42,
- 'causer-id' => 44,
+ 'contact-id' => 45,
+ 'author-id' => 45,
+ 'owner-id' => 43,
+ 'causer-id' => 45,
'uid' => 0,
'vid' => 8,
'unseen' => 0,
'post-thread' => [
[
'uri-id' => 1,
- 'author-id' => 42,
- 'owner-id' => 42,
- 'causer-id' => 42,
+ 'author-id' => 43,
+ 'owner-id' => 43,
+ 'causer-id' => 43,
'network' => Protocol::DFRN,
],
[
],
[
'uri-id' => 6,
- 'author-id' => 44,
- 'owner-id' => 44,
- 'causer-id' => 44,
+ 'author-id' => 45,
+ 'owner-id' => 45,
+ 'causer-id' => 45,
'network' => Protocol::DFRN,
],
[
'uri-id' => 7,
- 'author-id' => 44,
- 'owner-id' => 44,
- 'causer-id' => 44,
+ 'author-id' => 45,
+ 'owner-id' => 45,
+ 'causer-id' => 45,
'network' => Protocol::DFRN,
],
],
'uid' => 42,
'wall' => 1,
'post-user-id' => 1,
- 'author-id' => 42,
- 'owner-id' => 42,
- 'causer-id' => 42,
- 'contact-id' => 42,
+ 'author-id' => 43,
+ 'owner-id' => 43,
+ 'causer-id' => 43,
+ 'contact-id' => 43,
'network' => Protocol::DFRN,
'starred' => 1,
'origin' => 1,
'uid' => 42,
'wall' => 1,
'post-user-id' => 6,
- 'author-id' => 44,
- 'owner-id' => 44,
- 'causer-id' => 44,
- 'contact-id' => 44,
+ 'author-id' => 45,
+ 'owner-id' => 45,
+ 'causer-id' => 45,
+ 'contact-id' => 45,
'network' => Protocol::DFRN,
'starred' => 0,
'origin' => 1,
'uid' => 0,
'wall' => 0,
'post-user-id' => 7,
- 'author-id' => 42,
- 'owner-id' => 42,
- 'causer-id' => 42,
- 'contact-id' => 42,
+ 'author-id' => 43,
+ 'owner-id' => 43,
+ 'causer-id' => 43,
+ 'contact-id' => 43,
'network' => Protocol::DFRN,
'starred' => 0,
'origin' => 0,
'uid' => 0,
'wall' => 0,
'post-user-id' => 12,
- 'author-id' => 44,
- 'owner-id' => 44,
- 'causer-id' => 44,
- 'contact-id' => 44,
+ 'author-id' => 45,
+ 'owner-id' => 45,
+ 'causer-id' => 45,
+ 'contact-id' => 45,
'network' => Protocol::DFRN,
'starred' => 0,
'origin' => 0,
'uid' => 42,
'wall' => 1,
'post-user-id' => 7,
- 'author-id' => 44,
- 'owner-id' => 44,
- 'causer-id' => 44,
- 'contact-id' => 44,
+ 'author-id' => 45,
+ 'owner-id' => 45,
+ 'causer-id' => 45,
+ 'contact-id' => 45,
'network' => Protocol::DFRN,
'starred' => 0,
'origin' => 1,
'uid' => 0,
'wall' => 0,
'post-user-id' => 12,
- 'author-id' => 44,
- 'owner-id' => 44,
- 'causer-id' => 44,
- 'contact-id' => 44,
+ 'author-id' => 45,
+ 'owner-id' => 45,
+ 'causer-id' => 45,
+ 'contact-id' => 45,
'network' => Protocol::DFRN,
'starred' => 0,
'origin' => 0,
'id' => 1,
'type' => 8,
'name' => 'Friend contact',
- 'url' => 'http://localhost/profile/friendcontact',
- 'photo' => 'http://localhost/',
+ 'url' => 'https://friendica.local/profile/friendcontact',
+ 'photo' => 'https://friendica.local/',
'date' => '2020-01-01 12:12:02',
'msg' => 'A test reply from an item',
'uid' => 42,
- 'link' => 'http://localhost/display/1',
+ 'link' => 'https://friendica.local/display/1',
'iid' => 4,
'seen' => 0,
'verb' => \Friendica\Protocol\Activity::POST,
[
'id' => 1,
'gid' => 1,
- 'contact-id' => 42,
+ 'contact-id' => 43,
],
[
'id' => 2,
'gid' => 1,
- 'contact-id' => 42,
+ 'contact-id' => 43,
],
[
'id' => 3,