[PLUGIN][ActivityPub][Test] Test @language handling

This commit is contained in:
Diogo Peralta Cordeiro 2022-03-23 13:13:51 +00:00
parent 45344c80d1
commit 8808195a80
No known key found for this signature in database
GPG Key ID: 18D2D35001FBFAB0
5 changed files with 5 additions and 8 deletions

View File

@ -17,6 +17,9 @@
"@id": "gs:inConversation",
"@type": "@id"
}
},
{
"@language": "en"
}
],
"id": "https://instance.gnusocial.test/activity/1337",

View File

@ -17,9 +17,6 @@
"@id": "gs:inConversation",
"@type": "@id"
}
},
{
"@language": "en"
}
],
"id": "https://instance.gnusocial.test/activity/1338",

View File

@ -12,5 +12,5 @@
"cc": [
"https://instance.gnusocial.test/actor/42"
],
"object": "https://ds9.lemmy.ml/post/11202"
"object": "https://instance.gnusocial.test/object/note/1337"
}

View File

@ -17,9 +17,6 @@
"@id": "gs:inConversation",
"@type": "@id"
}
},
{
"@language": "en"
}
],
"id": "https://instance.gnusocial.test/object/note/1338",

View File

@ -51,7 +51,7 @@ class GSObjectPageTest extends GNUsocialTestCase
static::assertFalse($page->getIsLocal());
static::assertSame(VisibilityScope::EVERYWHERE, $page->getScope());
static::assertSame($object_uri, $page->getUrl());
static::assertSame('en', $page->getLanguageLocale());
static::assertNull($page->getLanguageLocale());
static::assertSame('page', $page->getType());
static::assertSame('hello, world.', $page->getTitle());