]> git.mxchange.org Git - friendica.git/blobdiff - tests/datasets/api.fixture.php
Added new field to the test data
[friendica.git] / tests / datasets / api.fixture.php
index 44501d0493f1f5dbed3bbb6b9f0900ffd7744117..54d4f4d3cf51bb943f46fb882d9f7c62fca46e1f 100644 (file)
@@ -1,4 +1,23 @@
 <?php
+/**
+ * @copyright Copyright (C) 2020, Friendica
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
+ *
+ */
 
 return [
        // Empty these tables
@@ -8,7 +27,7 @@ return [
        'photo',
        'workerqueue',
        'mail',
-       'item-delivery-data',
+       'post-delivery-data',
        // Base test config to avoid notice messages
        'config'  => [
                [
@@ -81,9 +100,42 @@ return [
                        'network' => 'dfrn',
                ],
        ],
+       'item-uri'    => [
+               [
+                       'id'   => 1,
+                       'uri'  => '1',
+                       'guid' => '1',
+               ],
+               [
+                       'id'   => 2,
+                       'uri'  => '2',
+                       'guid' => '2',
+               ],
+               [
+                       'id'   => 3,
+                       'uri'  => '3',
+                       'guid' => '3',
+               ],
+               [
+                       'id'   => 4,
+                       'uri'  => '4',
+                       'guid' => '4',
+               ],
+               [
+                       'id'   => 5,
+                       'uri'  => '5',
+                       'guid' => '5',
+               ],
+               [
+                       'id'   => 6,
+                       'uri'  => '6',
+                       'guid' => '6',
+               ],
+       ],
        'item'    => [
                [
                        'id'          => 1,
+                       'uri-id'      => 1,
                        'visible'     => 1,
                        'contact-id'  => 42,
                        'author-id'   => 42,
@@ -104,6 +156,7 @@ return [
                ],
                [
                        'id'          => 2,
+                       'uri-id'      => 2,
                        'visible'     => 1,
                        'contact-id'  => 42,
                        'author-id'   => 42,
@@ -121,6 +174,7 @@ return [
                [
 
                        'id'          => 3,
+                       'uri-id'      => 3,
                        'visible'     => 1,
                        'contact-id'  => 43,
                        'author-id'   => 43,
@@ -137,6 +191,7 @@ return [
                ],
                [
                        'id'          => 4,
+                       'uri-id'      => 4,
                        'visible'     => 1,
                        'contact-id'  => 44,
                        'author-id'   => 44,
@@ -154,6 +209,7 @@ return [
                [
 
                        'id'          => 5,
+                       'uri-id'      => 5,
                        'visible'     => 1,
                        'contact-id'  => 42,
                        'author-id'   => 42,
@@ -174,6 +230,7 @@ return [
                ],
                [
                        'id'          => 6,
+                       'uri-id'      => 6,
                        'visible'     => 1,
                        'contact-id'  => 44,
                        'author-id'   => 44,
@@ -211,6 +268,7 @@ return [
        'thread'  => [
                [
                        'iid'        => 1,
+                       'uri-id'     => 1,
                        'visible'    => 1,
                        'contact-id' => 42,
                        'author-id'  => 42,
@@ -220,6 +278,7 @@ return [
                ],
                [
                        'iid'        => 3,
+                       'uri-id'     => 3,
                        'visible'    => 1,
                        'contact-id' => 43,
                        'author-id'  => 43,
@@ -229,6 +288,7 @@ return [
                ],
                [
                        'iid'        => 6,
+                       'uri-id'     => 6,
                        'visible'    => 1,
                        'contact-id' => 44,
                        'author-id'  => 44,
@@ -237,6 +297,12 @@ return [
                        'wall'       => 1,
                ],
        ],
+       'profile' => [
+               [
+                       'id' => 1,
+                       'uid' => 42,
+               ],
+       ],
        'group'   => [
                [
                        'id'      => 1,