X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fdatasets%2Fapi.fixture.php;h=8bdb86892672ce71108732d44feda9cf8e86e729;hb=5bfbc1224c21928b42e3306bbc6133c23012e1ce;hp=475fa03854a06fb9edd1243e0cac8f9429f5c717;hpb=b876a339ff0502730de80c53962dff8e03c7c765;p=friendica.git diff --git a/tests/datasets/api.fixture.php b/tests/datasets/api.fixture.php index 475fa03854..8bdb868926 100644 --- a/tests/datasets/api.fixture.php +++ b/tests/datasets/api.fixture.php @@ -1,4 +1,23 @@ . + * + */ 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' => [ [ @@ -80,10 +99,82 @@ return [ 'rel' => 2, 'network' => 'dfrn', ], + [ + 'id' => 45, + 'uid' => 0, + 'name' => 'Friend contact', + 'nick' => 'friendcontact', + 'self' => 0, + 'nurl' => 'http://localhost/profile/friendcontact', + 'url' => 'http://localhost/profile/friendcontact', + 'pending' => 0, + 'blocked' => 0, + 'rel' => 2, + 'network' => 'dfrn', + ], + [ + 'id' => 46, + 'uid' => 42, + 'name' => 'Mutual contact', + 'nick' => 'mutualcontact', + 'self' => 0, + 'nurl' => 'http://localhost/profile/mutualcontact', + 'url' => 'http://localhost/profile/mutualcontact', + 'pending' => 0, + 'blocked' => 0, + 'rel' => 3, + 'network' => 'dfrn', + ], + [ + 'id' => 47, + 'uid' => 0, + 'name' => 'Mutual contact', + 'nick' => 'mutualcontact', + 'self' => 0, + 'nurl' => 'http://localhost/profile/mutualcontact', + 'url' => 'http://localhost/profile/mutualcontact', + 'pending' => 0, + 'blocked' => 0, + 'rel' => 2, + '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 +195,7 @@ return [ ], [ 'id' => 2, + 'uri-id' => 2, 'visible' => 1, 'contact-id' => 42, 'author-id' => 42, @@ -121,6 +213,7 @@ return [ [ 'id' => 3, + 'uri-id' => 3, 'visible' => 1, 'contact-id' => 43, 'author-id' => 43, @@ -137,6 +230,7 @@ return [ ], [ 'id' => 4, + 'uri-id' => 4, 'visible' => 1, 'contact-id' => 44, 'author-id' => 44, @@ -154,6 +248,7 @@ return [ [ 'id' => 5, + 'uri-id' => 5, 'visible' => 1, 'contact-id' => 42, 'author-id' => 42, @@ -174,6 +269,7 @@ return [ ], [ 'id' => 6, + 'uri-id' => 6, 'visible' => 1, 'contact-id' => 44, 'author-id' => 44, @@ -189,9 +285,29 @@ return [ 'origin' => 1, ], ], + 'notify' => [ + [ + 'id' => 1, + 'type' => 8, + 'name' => 'Reply to', + 'url' => 'http://localhost/display/1', + 'photo' => 'http://localhost/', + 'date' => '2020-01-01 12:12:02', + 'msg' => 'A test reply from an item', + 'uid' => 42, + 'link' => 'http://localhost/notification/1', + 'iid' => 4, + 'seen' => 0, + 'verb' => '', + 'otype' => 'item', + 'name_cache' => 'Reply to', + 'msg_cache' => 'A test reply from an item', + ], + ], 'thread' => [ [ 'iid' => 1, + 'uri-id' => 1, 'visible' => 1, 'contact-id' => 42, 'author-id' => 42, @@ -201,6 +317,7 @@ return [ ], [ 'iid' => 3, + 'uri-id' => 3, 'visible' => 1, 'contact-id' => 43, 'author-id' => 43, @@ -210,6 +327,7 @@ return [ ], [ 'iid' => 6, + 'uri-id' => 6, 'visible' => 1, 'contact-id' => 44, 'author-id' => 44, @@ -218,6 +336,12 @@ return [ 'wall' => 1, ], ], + 'profile' => [ + [ + 'id' => 1, + 'uid' => 42, + ], + ], 'group' => [ [ 'id' => 1,