]> git.mxchange.org Git - friendica.git/blobdiff - tests/datasets/api.fixture.php
Merge pull request #11997 from Quix0r/rewrite/gravity-constants
[friendica.git] / tests / datasets / api.fixture.php
index a764c31a7b722af4e45062148b4929a447e45512..bafbefd6dc2865c328b1058f616d68ea7bbbe007 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -141,6 +141,7 @@ return [
                        'self'     => 1,
                        'nurl'     => 'http://localhost/profile/selfcontact',
                        'url'      => 'http://localhost/profile/selfcontact',
+                       'notify'   => 'http://localhost/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-----",
@@ -161,6 +162,7 @@ return [
                        'self'     => 0,
                        'nurl'     => 'http://localhost/profile/othercontact',
                        'url'      => 'http://localhost/profile/othercontact',
+                       'notify'   => 'http://localhost/friendica/inbox',
                        'pending'  => 0,
                        'blocked'  => 0,
                        'rel'      => Contact::NOTHING,
@@ -176,6 +178,7 @@ return [
                        'self'     => 0,
                        'nurl'     => 'http://localhost/profile/friendcontact',
                        'url'      => 'http://localhost/profile/friendcontact',
+                       'notify'   => 'http://localhost/friendica/inbox',
                        'pending'  => 0,
                        'blocked'  => 0,
                        'rel'      => Contact::SHARING,
@@ -191,6 +194,7 @@ return [
                        'self'     => 0,
                        'nurl'     => 'http://localhost/profile/friendcontact',
                        'url'      => 'http://localhost/profile/friendcontact',
+                       'notify'   => 'http://localhost/friendica/inbox',
                        'pending'  => 0,
                        'blocked'  => 0,
                        'rel'      => Contact::SHARING,
@@ -206,6 +210,7 @@ return [
                        'self'     => 0,
                        'nurl'     => 'http://localhost/profile/mutualcontact',
                        'url'      => 'http://localhost/profile/mutualcontact',
+                       'notify'   => 'http://localhost/friendica/inbox',
                        'pending'  => 0,
                        'blocked'  => 0,
                        'rel'      => Contact::FRIEND,
@@ -221,6 +226,7 @@ return [
                        'self'     => 0,
                        'nurl'     => 'http://localhost/profile/mutualcontact',
                        'url'      => 'http://localhost/profile/mutualcontact',
+                       'notify'   => 'http://localhost/friendica/inbox',
                        'pending'  => 0,
                        'blocked'  => 0,
                        'rel'      => Contact::SHARING,
@@ -236,6 +242,7 @@ return [
                        'self'     => 0,
                        'nurl'     => 'http://localhost/profile/selfcontact',
                        'url'      => 'http://localhost/profile/selfcontact',
+                       'notify'   => 'http://localhost/friendica/inbox',
                        'about'    => 'User used in tests',
                        'pending'  => 0,
                        'blocked'  => 0,
@@ -380,7 +387,7 @@ return [
                        'uri-id'        => 1,
                        'parent-uri-id' => 1,
                        'thr-parent-id' => 1,
-                       'gravity'       => GRAVITY_PARENT,
+                       'gravity'       => Item::GRAVITY_PARENT,
                        'network'       => Protocol::DFRN,
                        'owner-id'      => 42,
                        'author-id'     => 42,
@@ -395,7 +402,7 @@ return [
                        'uri-id'        => 2,
                        'parent-uri-id' => 1,
                        'thr-parent-id' => 1,
-                       'gravity'       => GRAVITY_COMMENT,
+                       'gravity'       => Item::GRAVITY_COMMENT,
                        'network'       => Protocol::DFRN,
                        'owner-id'      => 42,
                        'author-id'     => 42,
@@ -410,7 +417,7 @@ return [
                        'uri-id'        => 3,
                        'parent-uri-id' => 3,
                        'thr-parent-id' => 3,
-                       'gravity'       => GRAVITY_PARENT,
+                       'gravity'       => Item::GRAVITY_PARENT,
                        'network'       => Protocol::DFRN,
                        'owner-id'      => 42,
                        'author-id'     => 43,
@@ -425,7 +432,7 @@ return [
                        'uri-id'        => 4,
                        'parent-uri-id' => 1,
                        'thr-parent-id' => 1,
-                       'gravity'       => GRAVITY_COMMENT,
+                       'gravity'       => Item::GRAVITY_COMMENT,
                        'network'       => Protocol::DFRN,
                        'owner-id'      => 42,
                        'author-id'     => 44,
@@ -440,7 +447,7 @@ return [
                        'uri-id'        => 5,
                        'parent-uri-id' => 1,
                        'thr-parent-id' => 1,
-                       'gravity'       => GRAVITY_COMMENT,
+                       'gravity'       => Item::GRAVITY_COMMENT,
                        'network'       => Protocol::DFRN,
                        'owner-id'      => 42,
                        'author-id'     => 42,
@@ -455,7 +462,7 @@ return [
                        'uri-id'        => 6,
                        'parent-uri-id' => 6,
                        'thr-parent-id' => 6,
-                       'gravity'       => GRAVITY_PARENT,
+                       'gravity'       => Item::GRAVITY_PARENT,
                        'network'       => Protocol::DFRN,
                        'owner-id'      => 42,
                        'author-id'     => 44,
@@ -470,7 +477,7 @@ return [
                        'uri-id'        => 7,
                        'parent-uri-id' => 7,
                        'thr-parent-id' => 7,
-                       'gravity'       => GRAVITY_PARENT,
+                       'gravity'       => Item::GRAVITY_PARENT,
                        'network'       => Protocol::DFRN,
                        'owner-id'      => 42,
                        'author-id'     => 44,
@@ -498,7 +505,7 @@ return [
                        'thr-parent-id' => 1,
                        'private'       => Item::PUBLIC,
                        'global'        => true,
-                       'gravity'       => GRAVITY_PARENT,
+                       'gravity'       => Item::GRAVITY_PARENT,
                        'network'       => Protocol::DFRN,
                        'wall'          => 1,
                        'origin'        => 1,
@@ -512,7 +519,7 @@ return [
                        'origin'        => 1,
                        'parent-uri-id' => 1,
                        'thr-parent-id' => 1,
-                       'gravity'       => GRAVITY_COMMENT,
+                       'gravity'       => Item::GRAVITY_COMMENT,
                        'network'       => Protocol::DFRN,
                        'owner-id'      => 42,
                        'author-id'     => 42,
@@ -533,7 +540,7 @@ return [
                        'origin'        => 1,
                        'parent-uri-id' => 3,
                        'thr-parent-id' => 3,
-                       'gravity'       => GRAVITY_PARENT,
+                       'gravity'       => Item::GRAVITY_PARENT,
                        'network'       => Protocol::DFRN,
                        'owner-id'      => 42,
                        'author-id'     => 43,
@@ -554,7 +561,7 @@ return [
                        'origin'        => 1,
                        'parent-uri-id' => 1,
                        'thr-parent-id' => 1,
-                       'gravity'       => GRAVITY_COMMENT,
+                       'gravity'       => Item::GRAVITY_COMMENT,
                        'network'       => Protocol::DFRN,
                        'owner-id'      => 42,
                        'author-id'     => 44,
@@ -575,7 +582,7 @@ return [
                        'origin'        => 1,
                        'parent-uri-id' => 1,
                        'thr-parent-id' => 1,
-                       'gravity'       => GRAVITY_COMMENT,
+                       'gravity'       => Item::GRAVITY_COMMENT,
                        'network'       => Protocol::DFRN,
                        'owner-id'      => 42,
                        'author-id'     => 42,
@@ -596,7 +603,7 @@ return [
                        'origin'        => 1,
                        'parent-uri-id' => 6,
                        'thr-parent-id' => 6,
-                       'gravity'       => GRAVITY_PARENT,
+                       'gravity'       => Item::GRAVITY_PARENT,
                        'network'       => Protocol::DFRN,
                        'owner-id'      => 42,
                        'author-id'     => 44,
@@ -617,7 +624,7 @@ return [
                        'origin'        => 0,
                        'parent-uri-id' => 1,
                        'thr-parent-id' => 1,
-                       'gravity'       => GRAVITY_PARENT,
+                       'gravity'       => Item::GRAVITY_PARENT,
                        'network'       => Protocol::DFRN,
                        'owner-id'      => 42,
                        'author-id'     => 42,
@@ -638,7 +645,7 @@ return [
                        'origin'        => 0,
                        'parent-uri-id' => 1,
                        'thr-parent-id' => 1,
-                       'gravity'       => GRAVITY_COMMENT,
+                       'gravity'       => Item::GRAVITY_COMMENT,
                        'network'       => Protocol::DFRN,
                        'owner-id'      => 42,
                        'author-id'     => 42,
@@ -659,7 +666,7 @@ return [
                        'origin'        => 0,
                        'parent-uri-id' => 3,
                        'thr-parent-id' => 3,
-                       'gravity'       => GRAVITY_PARENT,
+                       'gravity'       => Item::GRAVITY_PARENT,
                        'network'       => Protocol::DFRN,
                        'owner-id'      => 42,
                        'author-id'     => 43,
@@ -680,7 +687,7 @@ return [
                        'origin'        => 0,
                        'parent-uri-id' => 1,
                        'thr-parent-id' => 1,
-                       'gravity'       => GRAVITY_COMMENT,
+                       'gravity'       => Item::GRAVITY_COMMENT,
                        'network'       => Protocol::DFRN,
                        'owner-id'      => 42,
                        'author-id'     => 44,
@@ -701,7 +708,7 @@ return [
                        'origin'        => 0,
                        'parent-uri-id' => 1,
                        'thr-parent-id' => 1,
-                       'gravity'       => GRAVITY_COMMENT,
+                       'gravity'       => Item::GRAVITY_COMMENT,
                        'network'       => Protocol::DFRN,
                        'owner-id'      => 42,
                        'author-id'     => 42,
@@ -728,7 +735,7 @@ return [
                        'thr-parent-id' => 6,
                        'private'       => Item::PUBLIC,
                        'global'        => true,
-                       'gravity'       => GRAVITY_PARENT,
+                       'gravity'       => Item::GRAVITY_PARENT,
                        'network'       => Protocol::DFRN,
                        'origin'        => 0,
                        'deleted'       => 0,
@@ -749,7 +756,7 @@ return [
                        'thr-parent-id' => 7,
                        'private'       => Item::PUBLIC,
                        'global'        => true,
-                       'gravity'       => GRAVITY_PARENT,
+                       'gravity'       => Item::GRAVITY_PARENT,
                        'network'       => Protocol::DFRN,
                        'origin'        => 0,
                        'deleted'       => 0,
@@ -896,18 +903,18 @@ return [
                [
                        'id'         => 1,
                        'type'       => 8,
-                       'name'       => 'Reply to',
-                       'url'        => 'http://localhost/display/1',
+                       'name'       => 'Friend contact',
+                       'url'        => 'http://localhost/profile/friendcontact',
                        'photo'      => 'http://localhost/',
                        'date'       => '2020-01-01 12:12:02',
                        'msg'        => 'A test reply from an item',
                        'uid'        => 42,
-                       'link'       => 'http://localhost/notification/1',
+                       'link'       => 'http://localhost/display/1',
                        'iid'        => 4,
                        'seen'       => 0,
                        'verb'       => \Friendica\Protocol\Activity::POST,
                        'otype'      => Notification\ObjectType::ITEM,
-                       'name_cache' => 'Reply to',
+                       'name_cache' => 'Friend contact',
                        'msg_cache'  => 'A test reply from an item',
                ],
        ],