[PLUGIN][ActivityPub][Test] Test @language handling
This commit is contained in:
parent
45344c80d1
commit
8808195a80
@ -17,6 +17,9 @@
|
||||
"@id": "gs:inConversation",
|
||||
"@type": "@id"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@language": "en"
|
||||
}
|
||||
],
|
||||
"id": "https://instance.gnusocial.test/activity/1337",
|
||||
|
@ -17,9 +17,6 @@
|
||||
"@id": "gs:inConversation",
|
||||
"@type": "@id"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@language": "en"
|
||||
}
|
||||
],
|
||||
"id": "https://instance.gnusocial.test/activity/1338",
|
||||
|
@ -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"
|
||||
}
|
@ -17,9 +17,6 @@
|
||||
"@id": "gs:inConversation",
|
||||
"@type": "@id"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@language": "en"
|
||||
}
|
||||
],
|
||||
"id": "https://instance.gnusocial.test/object/note/1338",
|
||||
|
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user