diff options
author | Tobia De Koninck <tobia@ledfan.be> | 2017-07-14 07:48:25 +0300 |
---|---|---|
committer | Tobia De Koninck <tobia@ledfan.be> | 2017-07-14 07:48:25 +0300 |
commit | 8b1060fd08a37c51cbc4470a523ed1ceee49bf77 (patch) | |
tree | a3e04c16e589806d3a3a584a1d98c77a1d068859 /tests/integration | |
parent | 5a8a5d06bd8fd6691ecd983ab9fe8ad2a4014c84 (diff) |
Make sure the tests test for the bug of 5a8a5d0
Diffstat (limited to 'tests/integration')
-rw-r--r-- | tests/integration/db/PresenceMapperTest.php | 10 |
1 files changed, 5 insertions, 5 deletions
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'); |