From 8b1060fd08a37c51cbc4470a523ed1ceee49bf77 Mon Sep 17 00:00:00 2001 From: Tobia De Koninck Date: Fri, 14 Jul 2017 06:48:25 +0200 Subject: Make sure the tests test for the bug of 5a8a5d0 --- tests/integration/db/PresenceMapperTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/integration') diff --git a/tests/integration/db/PresenceMapperTest.php b/tests/integration/db/PresenceMapperTest.php index 268983c..4be8a0e 100644 --- a/tests/integration/db/PresenceMapperTest.php +++ b/tests/integration/db/PresenceMapperTest.php @@ -309,13 +309,13 @@ class PresenceMapperTest extends MapperTestUtility { $expStanza1 = new PresenceEntity(); $expStanza1->setPresence('unavailable'); - $expStanza1->setFrom('derp' . '@localhost'); - $expStanza1->setTo('admin' . '@localhost'); + $expStanza1->setFrom('derp' . '@localhost/internal'); + $expStanza1->setTo('admin' . '@localhost/internal'); $expStanza2 = new PresenceEntity(); $expStanza2->setPresence('unavailable'); - $expStanza2->setFrom('derpina' . '@localhost'); - $expStanza2->setTo('admin' . '@localhost'); + $expStanza2->setFrom('derpina' . '@localhost/internal'); + $expStanza2->setTo('admin' . '@localhost/internal'); return [ [ @@ -390,7 +390,7 @@ class PresenceMapperTest extends MapperTestUtility { $newContent = $this->newContentContainer->getStanzas(); sort($expNewContent); sort($newContent); - $this->assertObjectDbResultsEqual($expNewContent, $newContent, ['userid', 'presence', 'lastActive']); + $this->assertObjectDbResultsEqual($expNewContent, $newContent, ['userid', 'presence', 'lastActive', 'to', 'from']); $this->assertEquals(0, $this->newContentContainer->getCount()); // stanzas will be removed once fetched $stanzasToSend = $this->fetchAllAsArray('*PREFIX*ojsxc_stanzas'); -- cgit v1.2.3