[PLUGIN][ActivityPub][Test] Add Like{Note} fixture

This commit is contained in:
Diogo Peralta Cordeiro 2022-03-23 13:12:39 +00:00
parent 259d2da05a
commit 7eddbd343d
Signed by: diogo
GPG Key ID: 18D2D35001FBFAB0
2 changed files with 19 additions and 0 deletions

View File

@ -63,5 +63,8 @@ class ActivityPubFixtures extends Fixture
$create_reply_path = self::fixturesPath('activities/create_reply.jsonld', $ontology); $create_reply_path = self::fixturesPath('activities/create_reply.jsonld', $ontology);
$create_reply = Activity::fromJson(fread(fopen($create_reply_path, 'r'), filesize($create_reply_path))); $create_reply = Activity::fromJson(fread(fopen($create_reply_path, 'r'), filesize($create_reply_path)));
DB::flush(); DB::flush();
$like_note_path = self::fixturesPath('activities/like_note.jsonld', $ontology);
$like_note = Activity::fromJson(fread(fopen($like_note_path, 'r'), filesize($like_note_path)));
DB::flush();
} }
} }

View File

@ -0,0 +1,16 @@
{
"type": "Like",
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"id": "https://another_instance.gnusocial.test/activity/41362",
"published": "2022-03-20T17:54:15+00:00",
"actor": "https://another_instance.gnusocial.test/actor/43",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"cc": [
"https://instance.gnusocial.test/actor/42"
],
"object": "https://ds9.lemmy.ml/post/11202"
}