aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-04-27 16:50:37 -0700
committerzotlabs <mike@macgirvin.com>2017-04-27 16:50:37 -0700
commitab32372f8fa8bd2e831a907ce5f1232b84a8d083 (patch)
treea2827f9d99ac5299a10705f31168d35119b1185e /tests
parent2778e63d6c51b5ca77d9a309ddb7390b239fa491 (diff)
downloadvolse-hubzilla-ab32372f8fa8bd2e831a907ce5f1232b84a8d083.tar.gz
volse-hubzilla-ab32372f8fa8bd2e831a907ce5f1232b84a8d083.tar.bz2
volse-hubzilla-ab32372f8fa8bd2e831a907ce5f1232b84a8d083.zip
update feedutils with as:author changes, also update tests
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/includes/FeedutilsText.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/unit/includes/FeedutilsText.php b/tests/unit/includes/FeedutilsText.php
index e3eaa91a7..932a1b3a1 100644
--- a/tests/unit/includes/FeedutilsText.php
+++ b/tests/unit/includes/FeedutilsText.php
@@ -38,15 +38,18 @@ class FeedutilsTest extends UnitTestCase {
}*/
public function test_atom_author() {
- $this->assertEquals('', atom_author('', 'name', 'uri', 72, 72, 'png', 'photourl'));
+ $this->assertEquals('', atom_author('', 'nick', 'name', 'uri', 72, 72, 'png', 'photourl'));
$a = '<tag>
- <name>name</name>
+ <id>uri</id>
+ <name>nick</name>
<uri>uri</uri>
<link rel="photo" type="png" media:width="72" media:height="72" href="http://photourl" />
<link rel="avatar" type="png" media:width="72" media:height="72" href="http://photourl" />
+ <poco:preferredUsername>nick</poco:preferredUsername>
+ <poco:displayName>name<poco:displayName>
</tag>';
- $this->assertXmlStringEqualsXmlString($a, atom_author('tag', 'name', 'uri', 72, 72, 'png', 'http://photourl'));
+ $this->assertXmlStringEqualsXmlString($a, atom_author('tag', 'nick', 'name', 'uri', 72, 72, 'png', 'http://photourl'));
}
}