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

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2020-11-13 05:52:26 +0300
committerJoas Schilling <coding@schilljs.com>2020-12-08 15:00:12 +0300
commitf52aa0cf47f134d50824f0afbecd7374dadb5ba2 (patch)
treec20f3b2645af8e0e9f19b224cabca937c97c088e /tests
parentd259efdae4aea4a442b95a4d2e21d180f76b0c6b (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.php29
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,