Skip to content

Commit 4f00549

Browse files
feat: adding test
1 parent db7b961 commit 4f00549

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/integration/IntegrationTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,4 +1372,15 @@ public function testChannelArchive()
13721372
$this->assertCount(1, $response["channels"]);
13731373
$this->assertEquals($this->channel->getCID(), $response["channels"][0]["channel"]["cid"]);
13741374
}
1375+
1376+
public function testChannelUpdateMemberPartial()
1377+
{
1378+
$this->channel->addMembers([$this->user1["id"]]);
1379+
$response = $this->channel->updateMemberPartial($this->user1["id"], ["hat" => "blue"]);
1380+
$this->assertEquals("blue", $response["channel_member"]["hat"]);
1381+
1382+
$response = $this->channel->updateMemberPartial($this->user1["id"], ["color" => "red"], ["hat"]);
1383+
$this->assertEquals("red", $response["channel_member"]["color"]);
1384+
$this->assertArrayNotHasKey("hat", $response["channel_member"]);
1385+
}
13751386
}

0 commit comments

Comments
 (0)