Issue #1929420 by krlucas, kay_v, quietone, seiplax, floydm, alexpott, mlncn,...
Issue #1929420 by krlucas, kay_v, quietone, seiplax, floydm, alexpott, mlncn, nlisgo, gulab.bisht, scor, longwave, pameeela: $account->getDisplayName() should be used when outputing username in RDF module
(cherry picked from commit 4e7ba766)
@@ -87,7 +90,7 @@ public function testUserAttributesInMarkup() {
// User name.
$expected_value=[
'type'=>'literal',
'value'=>$author->getAccountName(),
'value'=>$author->getDisplayName(),
];
$this->assertTrue($this->hasRdfProperty($this->getSession()->getPage()->getContent(),$this->baseUri,$account_uri,'http://xmlns.com/foaf/0.1/name',$expected_value),'User name found in RDF output (foaf:name).');
...
...
@@ -108,7 +111,7 @@ public function testUserAttributesInMarkup() {
// User name.
$expected_value=[
'type'=>'literal',
'value'=>$author->getAccountName(),
'value'=>$author->getDisplayName(),
];
$this->assertTrue($this->hasRdfProperty($this->getSession()->getPage()->getContent(),$this->baseUri,$account_uri,'http://xmlns.com/foaf/0.1/name',$expected_value),'User name found in RDF output (foaf:name).');