Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/jsxc.nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLEDfan <tobia@ledfan.be>2016-01-21 17:14:23 +0300
committerLEDfan <tobia@ledfan.be>2016-01-21 17:14:23 +0300
commit2f295c6f49267ee2172ca4a14e6a785118a29d12 (patch)
tree4405f80c2cbdf135cd6c793e4c13a05e33a6f9a7 /tests/integration
parentfc78604fca485d4ab2d51063e5f1c66192d5247c (diff)
Fix unit tests
Diffstat (limited to 'tests/integration')
-rw-r--r--tests/integration/db/IqRosterTest.php8
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" => ''
],