From 2f84d874a874148ad73044a33b88783e09ae424f Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 15 Feb 2021 05:59:45 +0000 Subject: [PATCH] Test data for the "verb" table --- tests/datasets/api.fixture.php | 75 +++++++++++++++++++++++++--------- 1 file changed, 56 insertions(+), 19 deletions(-) diff --git a/tests/datasets/api.fixture.php b/tests/datasets/api.fixture.php index 80756edbc..3a1ad6d6b 100644 --- a/tests/datasets/api.fixture.php +++ b/tests/datasets/api.fixture.php @@ -23,7 +23,6 @@ use Friendica\Core\Protocol; use Friendica\Model\Contact; use Friendica\Model\Item; use Friendica\Model\Notification; -use Friendica\Model\Verb; return [ // Empty these tables @@ -183,6 +182,44 @@ return [ 'guid' => '6', ], ], + 'verb' => [ + [ + 'id' => 0, + 'name' => '', + ], + [ + 'id' => 1, + 'name' => 'http://activitystrea.ms/schema/1.0/like', + ], + [ + 'id' => 2, + 'name' => 'http://purl.org/macgirvin/dfrn/1.0/dislike', + ], + [ + 'id' => 3, + 'name' => 'http://purl.org/zot/activity/attendyes', + ], + [ + 'id' => 4, + 'name' => 'http://purl.org/zot/activity/attendno', + ], + [ + 'id' => 5, + 'name' => 'http://purl.org/zot/activity/attendmaybe', + ], + [ + 'id' => 6, + 'name' => 'http://activitystrea.ms/schema/1.0/follow', + ], + [ + 'id' => 7, + 'name' => 'https://www.w3.org/ns/activitystreams#Announce', + ], + [ + 'id' => 8, + 'name' => 'http://activitystrea.ms/schema/1.0/post', + ], + ], 'post-content' => [ [ 'uri-id' => 1, @@ -225,7 +262,7 @@ return [ 'owner-id' => 42, 'author-id' => 42, 'causer-id' => 42, - 'vid' => Verb::getID('http://activitystrea.ms/schema/1.0/post'), + 'vid' => 8, 'private' => Item::PUBLIC, 'visible' => 1, ], @@ -238,7 +275,7 @@ return [ 'owner-id' => 42, 'author-id' => 42, 'causer-id' => 42, - 'vid' => Verb::getID('http://activitystrea.ms/schema/1.0/post'), + 'vid' => 8, 'private' => Item::PUBLIC, 'visible' => 1, ], @@ -251,7 +288,7 @@ return [ 'owner-id' => 42, 'author-id' => 43, 'causer-id' => 43, - 'vid' => Verb::getID('http://activitystrea.ms/schema/1.0/post'), + 'vid' => 8, 'private' => Item::PUBLIC, 'visible' => 1, ], @@ -264,7 +301,7 @@ return [ 'owner-id' => 42, 'author-id' => 44, 'causer-id' => 44, - 'vid' => Verb::getID('http://activitystrea.ms/schema/1.0/post'), + 'vid' => 8, 'private' => Item::PUBLIC, 'visible' => 1, ], @@ -277,7 +314,7 @@ return [ 'owner-id' => 42, 'author-id' => 42, 'causer-id' => 42, - 'vid' => Verb::getID('http://activitystrea.ms/schema/1.0/post'), + 'vid' => 8, 'private' => Item::PUBLIC, 'visible' => 1, ], @@ -290,7 +327,7 @@ return [ 'owner-id' => 42, 'author-id' => 44, 'causer-id' => 44, - 'vid' => Verb::getID('http://activitystrea.ms/schema/1.0/post'), + 'vid' => 8, 'private' => Item::PUBLIC, 'visible' => 1, ], @@ -310,7 +347,7 @@ return [ 'owner-id' => 42, 'author-id' => 42, 'causer-id' => 42, - 'vid' => Verb::getID('http://activitystrea.ms/schema/1.0/post'), + 'vid' => 8, 'private' => Item::PUBLIC, 'visible' => 1, ], @@ -328,7 +365,7 @@ return [ 'owner-id' => 42, 'author-id' => 42, 'causer-id' => 42, - 'vid' => Verb::getID('http://activitystrea.ms/schema/1.0/post'), + 'vid' => 8, 'private' => Item::PUBLIC, 'visible' => 1, ], @@ -346,7 +383,7 @@ return [ 'owner-id' => 42, 'author-id' => 43, 'causer-id' => 43, - 'vid' => Verb::getID('http://activitystrea.ms/schema/1.0/post'), + 'vid' => 8, 'private' => Item::PUBLIC, 'visible' => 1, ], @@ -364,7 +401,7 @@ return [ 'owner-id' => 42, 'author-id' => 44, 'causer-id' => 44, - 'vid' => Verb::getID('http://activitystrea.ms/schema/1.0/post'), + 'vid' => 8, 'private' => Item::PUBLIC, 'visible' => 1, ], @@ -382,7 +419,7 @@ return [ 'owner-id' => 42, 'author-id' => 42, 'causer-id' => 42, - 'vid' => Verb::getID('http://activitystrea.ms/schema/1.0/post'), + 'vid' => 8, 'private' => Item::PUBLIC, 'visible' => 1, ], @@ -400,7 +437,7 @@ return [ 'owner-id' => 42, 'author-id' => 44, 'causer-id' => 44, - 'vid' => Verb::getID('http://activitystrea.ms/schema/1.0/post'), + 'vid' => 8, 'private' => Item::PUBLIC, 'visible' => 1, ], @@ -418,7 +455,7 @@ return [ 'owner-id' => 42, 'author-id' => 42, 'causer-id' => 42, - 'vid' => Verb::getID('http://activitystrea.ms/schema/1.0/post'), + 'vid' => 8, 'private' => Item::PUBLIC, 'visible' => 1, ], @@ -436,7 +473,7 @@ return [ 'owner-id' => 42, 'author-id' => 42, 'causer-id' => 42, - 'vid' => Verb::getID('http://activitystrea.ms/schema/1.0/post'), + 'vid' => 8, 'private' => Item::PUBLIC, 'visible' => 1, ], @@ -454,7 +491,7 @@ return [ 'owner-id' => 42, 'author-id' => 43, 'causer-id' => 43, - 'vid' => Verb::getID('http://activitystrea.ms/schema/1.0/post'), + 'vid' => 8, 'private' => Item::PUBLIC, 'visible' => 1, ], @@ -472,7 +509,7 @@ return [ 'owner-id' => 42, 'author-id' => 44, 'causer-id' => 44, - 'vid' => Verb::getID('http://activitystrea.ms/schema/1.0/post'), + 'vid' => 8, 'private' => Item::PUBLIC, 'visible' => 1, ], @@ -490,7 +527,7 @@ return [ 'owner-id' => 42, 'author-id' => 42, 'causer-id' => 42, - 'vid' => Verb::getID('http://activitystrea.ms/schema/1.0/post'), + 'vid' => 8, 'private' => Item::PUBLIC, 'visible' => 1, ], @@ -508,7 +545,7 @@ return [ 'owner-id' => 42, 'author-id' => 44, 'causer-id' => 44, - 'vid' => Verb::getID('http://activitystrea.ms/schema/1.0/post'), + 'vid' => 8, 'private' => Item::PUBLIC, 'visible' => 1, ],