File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments