@@ -1475,59 +1475,6 @@ public function testSendMessageWithRestrictedVisibility()
14751475 $ this ->assertEquals ([$ this ->user1 ["id " ]], $ response ["message " ]["restricted_visibility " ]);
14761476 }
14771477
1478- public function testUpdateMessageWithRestrictedVisibility ()
1479- {
1480- $ this ->channel ->addMembers ([$ this ->user1 ["id " ], $ this ->user2 ["id " ]]);
1481-
1482- // First send a regular message
1483- $ msgId = $ this ->generateGuid ();
1484- $ msg = [
1485- "id " => $ msgId ,
1486- "text " => "original message "
1487- ];
1488- $ response = $ this ->channel ->sendMessage ($ msg , $ this ->user1 ["id " ]);
1489-
1490- // Then update it with restricted visibility
1491- $ updatedMsg = [
1492- "id " => $ msgId ,
1493- "text " => "updated secret message " ,
1494- "restricted_visibility " => [$ this ->user1 ["id " ]],
1495- "user " => ["id " => $ this ->user1 ["id " ]]
1496- ];
1497-
1498- $ response = $ this ->client ->updateMessage ($ updatedMsg );
1499- $ this ->assertNotNull ($ response ["message " ]["restricted_visibility " ]);
1500- $ this ->assertEquals ([$ this ->user1 ["id " ]], $ response ["message " ]["restricted_visibility " ]);
1501- }
1502-
1503- public function testUpdateMessagePartialWithRestrictedVisibility ()
1504- {
1505- $ this ->channel ->addMembers ([$ this ->user1 ["id " ], $ this ->user2 ["id " ]]);
1506-
1507- // First send a regular message
1508- $ msgId = $ this ->generateGuid ();
1509- $ msg = [
1510- "id " => $ msgId ,
1511- "text " => "original message "
1512- ];
1513- $ response = $ this ->channel ->sendMessage ($ msg , $ this ->user1 ["id " ]);
1514-
1515- // Then do a partial update with restricted visibility
1516- $ response = $ this ->client ->partialUpdateMessage (
1517- $ msgId ,
1518- [
1519- "set " => [
1520- "text " => "partially updated secret message " ,
1521- "restricted_visibility " => [$ this ->user1 ["id " ]]
1522- ]
1523- ],
1524- $ this ->user1 ["id " ]
1525- );
1526-
1527- $ this ->assertNotNull ($ response ["message " ]["restricted_visibility " ]);
1528- $ this ->assertEquals ([$ this ->user1 ["id " ]], $ response ["message " ]["restricted_visibility " ]);
1529- }
1530-
15311478 public function testExportUsers ()
15321479 {
15331480 $ user = ["id " => $ this ->generateGuid ()];
0 commit comments