]> git.mxchange.org Git - friendica.git/blobdiff - tests/datasets/api.fixture.php
Merge branch 'fix-fatal' into item-view
[friendica.git] / tests / datasets / api.fixture.php
index 44501d0493f1f5dbed3bbb6b9f0900ffd7744117..fb11ae3476460f234a7153befa6de496fd574bf2 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'  => [
                [
@@ -84,6 +103,7 @@ return [
        'item'    => [
                [
                        'id'          => 1,
+                       'uri-id'      => 1,
                        'visible'     => 1,
                        'contact-id'  => 42,
                        'author-id'   => 42,
@@ -104,6 +124,7 @@ return [
                ],
                [
                        'id'          => 2,
+                       'uri-id'      => 2,
                        'visible'     => 1,
                        'contact-id'  => 42,
                        'author-id'   => 42,
@@ -121,6 +142,7 @@ return [
                [
 
                        'id'          => 3,
+                       'uri-id'      => 3,
                        'visible'     => 1,
                        'contact-id'  => 43,
                        'author-id'   => 43,
@@ -137,6 +159,7 @@ return [
                ],
                [
                        'id'          => 4,
+                       'uri-id'      => 4,
                        'visible'     => 1,
                        'contact-id'  => 44,
                        'author-id'   => 44,
@@ -154,6 +177,7 @@ return [
                [
 
                        'id'          => 5,
+                       'uri-id'      => 5,
                        'visible'     => 1,
                        'contact-id'  => 42,
                        'author-id'   => 42,
@@ -174,6 +198,7 @@ return [
                ],
                [
                        'id'          => 6,
+                       'uri-id'      => 6,
                        'visible'     => 1,
                        'contact-id'  => 44,
                        'author-id'   => 44,
@@ -237,6 +262,12 @@ return [
                        'wall'       => 1,
                ],
        ],
+       'profile' => [
+               [
+                       'id' => 1,
+                       'uid' => 42,
+               ],
+       ],
        'group'   => [
                [
                        'id'      => 1,