diff options
author | LEDfan <tobia@ledfan.be> | 2016-01-21 17:14:23 +0300 |
---|---|---|
committer | LEDfan <tobia@ledfan.be> | 2016-01-21 17:14:23 +0300 |
commit | 2f295c6f49267ee2172ca4a14e6a785118a29d12 (patch) | |
tree | 4405f80c2cbdf135cd6c793e4c13a05e33a6f9a7 /tests/integration | |
parent | fc78604fca485d4ab2d51063e5f1c66192d5247c (diff) |
Fix unit tests
Diffstat (limited to 'tests/integration')
-rw-r--r-- | tests/integration/db/IqRosterTest.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/integration/db/IqRosterTest.php b/tests/integration/db/IqRosterTest.php index 8ce890f..c711023 100644 --- a/tests/integration/db/IqRosterTest.php +++ b/tests/integration/db/IqRosterTest.php @@ -7,7 +7,7 @@ use Sabre\Xml\Writer; class IqRosterTest extends PHPUnit_Framework_TestCase { public function testIqRoster() { - $expected = '<body xmlns="http://jabber.org/protocol/httpbind"><iq to="john@localhost" type="result" id="4434"><query xmlns="jabber:iq:roster"><item jid="test@test.be" name="Test Test"></item><item jid="test2@test.be" name="Test2 Test"></item></query></iq></body>'; + $expected = '<body xmlns="http://jabber.org/protocol/httpbind"><iq to="john@localhost" type="result" id="4434"><query xmlns="jabber:iq:roster"><item jid="test@test.be" name="Test Test" subscription="both"></item><item jid="test2@test.be" name="Test2 Test" subscription="both"></item></query></iq></body>'; $writer = new Writer(); $writer->openMemory(); @@ -29,7 +29,8 @@ class IqRosterTest extends PHPUnit_Framework_TestCase { "name" => "item", "attributes" => [ "jid" => "test@test.be", - "name" => "Test Test" + "name" => "Test Test", + "subscription" => "both" ], "value" => '' ], @@ -37,7 +38,8 @@ class IqRosterTest extends PHPUnit_Framework_TestCase { "name" => "item", "attributes" => [ "jid" => "test2@test.be", - "name" => "Test2 Test" + "name" => "Test2 Test", + "subscription" => "both" ], "value" => '' ], |