Skip to content

Commit

Permalink
fix test_output_ff_services
Browse files Browse the repository at this point in the history
  • Loading branch information
mschuett committed Mar 11, 2016
1 parent b134202 commit 47d64c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test-LowLevelTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,13 @@ function test_output_ff_services() {
'serviceName' => 'jabber',
'serviceDescription' => 'chat',
'internalUri' => 'xmpp://jabber.local',
'externalUri' => 'xmpp://jabber.example.org',
)));
$ret = $this->FFM->output_ff_services($data);
$this->assertEquals('<ul><li>jabber (chat): <a href="xmpp://jabber.local">xmpp://jabber.local</a></li></ul>', $ret);
$this->assertEquals('<table><th>Dienst</th><th>Beschreibung</th><th>Freifunk URI</th><th>Internet URI</th>'.
'<tr><td>jabber</td><td>chat</td><td><a href="xmpp://jabber.local">xmpp://jabber.local</a></td>'.
'<td><a href="xmpp://jabber.example.org">xmpp://jabber.example.org</a></td></tr>'.
'</table>', $ret);
}

function test_output_ff_contact_null() {
Expand Down

0 comments on commit 47d64c8

Please sign in to comment.