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:
authorTobia De Koninck <tobia@ledfan.be>2017-10-15 09:50:55 +0300
committerTobia De Koninck <tobia@ledfan.be>2017-10-15 09:50:55 +0300
commit4b6daef6b775e5372dce62ccaaba6faac3cff6c2 (patch)
tree1c724b67028904ffbdc6b7507bff90552b4ada01 /tests/unit
parent75b7a02f9478b23365d5fb4b3bbac2d3114498e5 (diff)
Escape characters allowed in the NC username which is not allowed in the
XMPP username. - `@`, `'`, ` `, will now be replaced by `_ojsxc_esc_space_`, `_ojsxc_squote_space_` and `_ojsxc_esc_at_` respectively - cleanuped tests and code to always store the userId and not a JID in the database Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/http/XMPPResponseTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/http/XMPPResponseTest.php b/tests/unit/http/XMPPResponseTest.php
index 94cf1bc..2ec52b9 100644
--- a/tests/unit/http/XMPPResponseTest.php
+++ b/tests/unit/http/XMPPResponseTest.php
@@ -19,12 +19,12 @@ namespace OCA\OJSXC\Http {
public function writingProvider()
{
$stanza1 = new Stanza();
- $stanza1->setFrom('test@test.be');
+ $stanza1->setFrom('test', 'test.be');
$stanza1->setTo('test.be');
$stanza1->setStanza('abc');
$stanza2 = new Message();
- $stanza2->setFrom('test@test.be');
+ $stanza2->setFrom('test', 'test.be');
$stanza2->setTo('test.be');
$stanza2->setStanza('abc');
$stanza2->setType('testtype');