diff options
author | zotlabs <mike@macgirvin.com> | 2017-04-30 16:50:10 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-04-30 16:50:10 -0700 |
commit | d71a53f24ee464fba5d4373397a3a797e8f0c6a3 (patch) | |
tree | 0c9be1e6d47c7e28efd8e538350aa0a00a0b8a0e /tests/unit/includes/FeedutilsText.php | |
parent | c845d20352300e2b8a6133bbf3fe270807ba0856 (diff) | |
parent | 635b8ff73aca5d1a8ba6ea5bb575f3f2838d41a0 (diff) | |
download | volse-hubzilla-d71a53f24ee464fba5d4373397a3a797e8f0c6a3.tar.gz volse-hubzilla-d71a53f24ee464fba5d4373397a3a797e8f0c6a3.tar.bz2 volse-hubzilla-d71a53f24ee464fba5d4373397a3a797e8f0c6a3.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into xdev_merge
Diffstat (limited to 'tests/unit/includes/FeedutilsText.php')
-rw-r--r-- | tests/unit/includes/FeedutilsText.php | 9 |
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')); } } |