From c2ad7f06503c7792d3335a9e13379d29721b85ce Mon Sep 17 00:00:00 2001 From: Marius Kleidl <1375043+Acconut@users.noreply.github.com> Date: Thu, 18 Dec 2025 17:22:35 +0100 Subject: [PATCH] [CHA-1630] Remove tests for updating restricted visibility Removed tests for updating messages with restricted visibility. --- tests/integration/IntegrationTest.php | 53 --------------------------- 1 file changed, 53 deletions(-) diff --git a/tests/integration/IntegrationTest.php b/tests/integration/IntegrationTest.php index f9ff52d..ad43dcf 100644 --- a/tests/integration/IntegrationTest.php +++ b/tests/integration/IntegrationTest.php @@ -1475,59 +1475,6 @@ public function testSendMessageWithRestrictedVisibility() $this->assertEquals([$this->user1["id"]], $response["message"]["restricted_visibility"]); } - public function testUpdateMessageWithRestrictedVisibility() - { - $this->channel->addMembers([$this->user1["id"], $this->user2["id"]]); - - // First send a regular message - $msgId = $this->generateGuid(); - $msg = [ - "id" => $msgId, - "text" => "original message" - ]; - $response = $this->channel->sendMessage($msg, $this->user1["id"]); - - // Then update it with restricted visibility - $updatedMsg = [ - "id" => $msgId, - "text" => "updated secret message", - "restricted_visibility" => [$this->user1["id"]], - "user" => ["id" => $this->user1["id"]] - ]; - - $response = $this->client->updateMessage($updatedMsg); - $this->assertNotNull($response["message"]["restricted_visibility"]); - $this->assertEquals([$this->user1["id"]], $response["message"]["restricted_visibility"]); - } - - public function testUpdateMessagePartialWithRestrictedVisibility() - { - $this->channel->addMembers([$this->user1["id"], $this->user2["id"]]); - - // First send a regular message - $msgId = $this->generateGuid(); - $msg = [ - "id" => $msgId, - "text" => "original message" - ]; - $response = $this->channel->sendMessage($msg, $this->user1["id"]); - - // Then do a partial update with restricted visibility - $response = $this->client->partialUpdateMessage( - $msgId, - [ - "set" => [ - "text" => "partially updated secret message", - "restricted_visibility" => [$this->user1["id"]] - ] - ], - $this->user1["id"] - ); - - $this->assertNotNull($response["message"]["restricted_visibility"]); - $this->assertEquals([$this->user1["id"]], $response["message"]["restricted_visibility"]); - } - public function testExportUsers() { $user = ["id" => $this->generateGuid()];