]> git.mxchange.org Git - friendica.git/blobdiff - tests/datasets/api.fixture.php
spelling: endpoints
[friendica.git] / tests / datasets / api.fixture.php
index 1b52baa3546977c57fe80ec0b519b205d36552fb..b50f706251e446111567f8ebfd9c1413459938c1 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -36,33 +36,6 @@ return [
        'mail',
        'post-delivery-data',
        // Base test config to avoid notice messages
-       'config' => [
-               [
-                       'cat' => 'system',
-                       'k'   => 'url',
-                       'v'   => 'http://localhost',
-               ],
-               [
-                       'cat' => 'config',
-                       'k'   => 'hostname',
-                       'v'   => 'localhost',
-               ],
-               [
-                       'cat' => 'system',
-                       'k'   => 'worker_dont_fork',
-                       'v'   => '1',
-               ],
-               [
-                       'cat' => 'system',
-                       'k'   => 'curl_timeout',
-                       'v'   => '1',
-               ],
-               [
-                       'cat' => 'system',
-                       'k'   => 'xrd_timeout',
-                       'v'   => '1',
-               ],
-       ],
        'user' => [
                [
                        'uid'      => 42,
@@ -387,7 +360,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,
@@ -402,7 +375,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,
@@ -417,7 +390,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,
@@ -432,7 +405,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,
@@ -447,7 +420,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,
@@ -462,7 +435,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,
@@ -477,7 +450,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,
@@ -505,7 +478,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,
@@ -519,7 +492,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,
@@ -540,7 +513,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,
@@ -561,7 +534,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,
@@ -582,7 +555,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,
@@ -603,7 +576,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,
@@ -624,7 +597,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,
@@ -645,7 +618,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,
@@ -666,7 +639,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,
@@ -687,7 +660,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,
@@ -708,7 +681,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,
@@ -735,7 +708,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,
@@ -756,7 +729,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,
@@ -903,18 +876,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',
                ],
        ],