diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-11-13 05:52:26 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-12-08 15:00:12 +0300 |
commit | f52aa0cf47f134d50824f0afbecd7374dadb5ba2 (patch) | |
tree | c20f3b2645af8e0e9f19b224cabca937c97c088e /tests | |
parent | d259efdae4aea4a442b95a4d2e21d180f76b0c6b (diff) |
Notify external signaling server when description changes
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/php/Signaling/BackendNotifierTest.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/php/Signaling/BackendNotifierTest.php b/tests/php/Signaling/BackendNotifierTest.php index 47777bbb7..2af62fb72 100644 --- a/tests/php/Signaling/BackendNotifierTest.php +++ b/tests/php/Signaling/BackendNotifierTest.php @@ -305,6 +305,30 @@ class BackendNotifierTest extends \Test\TestCase { ], 'properties' => [ 'name' => $room->getDisplayName(''), + 'description' => '', + 'type' => $room->getType(), + 'lobby-state' => Webinary::LOBBY_NONE, + 'lobby-timer' => null, + 'read-only' => Room::READ_WRITE, + 'active-since' => null, + 'sip-enabled' => 0, + ], + ], + ]); + } + + public function testRoomDescriptionChanged() { + $room = $this->manager->createRoom(Room::PUBLIC_CALL); + $room->setDescription('The description'); + + $this->assertMessageWasSent($room, [ + 'type' => 'update', + 'update' => [ + 'userids' => [ + ], + 'properties' => [ + 'name' => $room->getDisplayName(''), + 'description' => 'The description', 'type' => $room->getType(), 'lobby-state' => Webinary::LOBBY_NONE, 'lobby-timer' => null, @@ -327,6 +351,7 @@ class BackendNotifierTest extends \Test\TestCase { ], 'properties' => [ 'name' => $room->getDisplayName(''), + 'description' => '', 'type' => $room->getType(), 'lobby-state' => Webinary::LOBBY_NONE, 'lobby-timer' => null, @@ -349,6 +374,7 @@ class BackendNotifierTest extends \Test\TestCase { ], 'properties' => [ 'name' => $room->getDisplayName(''), + 'description' => '', 'type' => $room->getType(), 'lobby-state' => Webinary::LOBBY_NONE, 'lobby-timer' => null, @@ -371,6 +397,7 @@ class BackendNotifierTest extends \Test\TestCase { ], 'properties' => [ 'name' => $room->getDisplayName(''), + 'description' => '', 'type' => $room->getType(), 'lobby-state' => Webinary::LOBBY_NONE, 'lobby-timer' => null, @@ -393,6 +420,7 @@ class BackendNotifierTest extends \Test\TestCase { ], 'properties' => [ 'name' => $room->getDisplayName(''), + 'description' => '', 'type' => $room->getType(), 'lobby-state' => Webinary::LOBBY_NON_MODERATORS, 'lobby-timer' => null, @@ -551,6 +579,7 @@ class BackendNotifierTest extends \Test\TestCase { ], 'properties' => [ 'name' => $room->getDisplayName(''), + 'description' => '', 'type' => $room->getType(), 'lobby-state' => Webinary::LOBBY_NONE, 'lobby-timer' => null, |